updating the autotagger again
All checks were successful
Actions / Build Documentation (push) Successful in 12s
Actions / Build Export Files (push) Successful in 4s
Autotagger / Autotagger (push) Successful in 2s

This commit is contained in:
SeaswimmerTheFsh 2024-03-11 20:39:27 -04:00
parent cd8e1c65ae
commit 2a7979e240
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -21,13 +21,17 @@ jobs:
run: |
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
PATTERN="Version 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 "::set-output name=version::${BASH_REMATCH[1]}"
else
echo "No version bump found in commit message."
LATEST_TAG=$(git describe --tags --abbrev=0)
echo "::set-output name=latest_tag::$LATEST_TAG"
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -n "$LATEST_TAG" ]; then
echo "::set-output name=latest_tag::$LATEST_TAG"
else
echo "No tags found."
fi
fi
- name: Create or update tag