From ac666676b14376e0dd8615f8a228a54ed373d10c Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 11 Mar 2024 20:54:24 -0400 Subject: [PATCH] expanded autotagger to allow for slightly malformed version bump messages --- .forgejo/workflows/autotagger.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/autotagger.yaml b/.forgejo/workflows/autotagger.yaml index 5e7e200..48073ef 100644 --- a/.forgejo/workflows/autotagger.yaml +++ b/.forgejo/workflows/autotagger.yaml @@ -27,7 +27,7 @@ jobs: id: check_commit_message run: | 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 echo "Found version bump in commit message." echo "::set-output name=version::${BASH_REMATCH[1]}" @@ -45,7 +45,7 @@ jobs: 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 tag -a $VERSION -m "version bumped to $VERSION" git push origin $VERSION - name: Force update latest tag