Skip to content

Commit

Permalink
Pass gracefully if tag is already in place
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Dec 12, 2024
1 parent d9dc0fb commit 5c62a8a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/set_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,15 @@ jobs:
git commit -m "Set version number"
fi
- name: "Tag new commit"
- name: "Tag commit"
shell: bash -l {0}
run: |
git tag $VERSION_STRING
if test $(git describe --tags --exact-match) = $VERSION_STRING
then
echo "The correct tag is already on this commit"
else
git tag $VERSION_STRING
fi
- name: "Show updated log"
run: |
Expand Down

0 comments on commit 5c62a8a

Please sign in to comment.