fixed autotagger regex once more
This commit is contained in:
parent
f929ad2d58
commit
69171e1fcd
1 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ jobs:
|
|||
id: check_commit_message
|
||||
run: |
|
||||
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
||||
PATTERN="^(?:V|v)ersion\ bump(?:ed)?\ to\ ([0-9]+\.[0-9]+\.[0-9]+(?:-[a-zA-Z0-9]+)?)"
|
||||
PATTERN="^(?:V|v)ersion\ bump(?:ed)?\ to\ ([0-9]+\.[0-9]+\.[0-9]+(?:-[a-zA-Z0-9]+)?).*"
|
||||
if echo "$COMMIT_MESSAGE" | grep -E "$PATTERN"; then
|
||||
echo "Found version bump in commit message."
|
||||
echo "::set-output name=version::${BASH_REMATCH[1]}"
|
||||
|
@ -41,14 +41,14 @@ jobs:
|
|||
fi
|
||||
fi
|
||||
|
||||
- name: Create or update tag
|
||||
- name: Create tag
|
||||
if: steps.check_commit_message.outputs.version
|
||||
run: |
|
||||
VERSION=${{ steps.check_commit_message.outputs.version }}
|
||||
git tag -a $VERSION -m "version bumped to $VERSION"
|
||||
git push origin $VERSION
|
||||
|
||||
- name: Force update latest tag
|
||||
- name: Update latest tag
|
||||
if: steps.check_commit_message.outputs.latest_tag
|
||||
run: |
|
||||
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
||||
|
|
Reference in a new issue