fixed autotagger regex once more
All checks were successful
Autotagger / Autotagger (push) Successful in 4s
Build / Documentation (push) Successful in 15s
Build / Export Files (push) Successful in 8s

This commit is contained in:
SeaswimmerTheFsh 2024-03-11 21:13:33 -04:00
parent f929ad2d58
commit 69171e1fcd
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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 }}")