expanded autotagger to allow for slightly malformed version bump messages
This commit is contained in:
parent
3878eba007
commit
ac666676b1
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ jobs:
|
||||||
id: check_commit_message
|
id: check_commit_message
|
||||||
run: |
|
run: |
|
||||||
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
||||||
PATTERN="Version bump(?:ed)? to ([0-9]+\.[0-9]+\.[0-9]+)"
|
PATTERN="^(?:V|v)ersion bump(?:ed)? to ([0-9]+\.[0-9]+\.[0-9]+.*)"
|
||||||
if [ "$COMMIT_MESSAGE" =~ $PATTERN ]; then
|
if [ "$COMMIT_MESSAGE" =~ $PATTERN ]; then
|
||||||
echo "Found version bump in commit message."
|
echo "Found version bump in commit message."
|
||||||
echo "::set-output name=version::${BASH_REMATCH[1]}"
|
echo "::set-output name=version::${BASH_REMATCH[1]}"
|
||||||
|
@ -45,7 +45,7 @@ jobs:
|
||||||
if: steps.check_commit_message.outputs.version
|
if: steps.check_commit_message.outputs.version
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ steps.check_commit_message.outputs.version }}
|
VERSION=${{ steps.check_commit_message.outputs.version }}
|
||||||
git tag -a $VERSION -m "Version bumped to $VERSION"
|
git tag -a $VERSION -m "version bumped to $VERSION"
|
||||||
git push origin $VERSION
|
git push origin $VERSION
|
||||||
|
|
||||||
- name: Force update latest tag
|
- name: Force update latest tag
|
||||||
|
|
Reference in a new issue