updating the autotagger again
This commit is contained in:
parent
cd8e1c65ae
commit
2a7979e240
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
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
|
||||
|
|
Reference in a new issue