Skip to content

Commit

Permalink
Merge pull request #392 from alphagov/ENG-518-update-automatic-tag-in…
Browse files Browse the repository at this point in the history
…crement

Update tag parsing to correctly extract release number
  • Loading branch information
HauwaHakimi authored Nov 8, 2024
2 parents 655dabb + 6a3e72d commit 70d9ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/post-merge-tests-and-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Tag release
run: |
LATEST_RELEASE_NUMBER=$(git describe --abbrev=0 --tags --match "pre_release_*" | awk -F- '{print $2}' || echo "0")
LATEST_RELEASE_NUMBER=$(git describe --abbrev=0 --tags --match "pre_release_*" | awk -F'_' '{print $3}' || echo "0")
NEW_RELEASE_NUMBER=$((LATEST_RELEASE_NUMBER + 1))
TAG_NAME=pre_release_${NEW_RELEASE_NUMBER}
echo "TAG_NAME: ${TAG_NAME}"
Expand Down

0 comments on commit 70d9ffb

Please sign in to comment.