expanded autotagger to allow for slightly malformed version bump messages
All checks were successful
Actions / Build Documentation (push) Successful in 12s
Actions / Build Export Files (push) Successful in 4s
Autotagger / Autotagger (push) Successful in 3s

This commit is contained in:
SeaswimmerTheFsh 2024-03-11 20:54:24 -04:00
parent 3878eba007
commit ac666676b1
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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