From 69171e1fcdc891fdc561f15c80bf911531e2b61f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 11 Mar 2024 21:13:33 -0400 Subject: [PATCH] fixed autotagger regex once more --- .forgejo/workflows/autotagger.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/autotagger.yaml b/.forgejo/workflows/autotagger.yaml index e37de0b..a417f57 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="^(?: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 }}")