Skip to content

Commit

Permalink
Merge pull request #51 from gumob:develop
Browse files Browse the repository at this point in the history
ci(workflow): Add `git fetch --tags` before checking for existing tag to ensure up-to-date list of tags
  • Loading branch information
gumob authored Aug 28, 2024
2 parents b78aa55 + b6441d9 commit cfb4b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ jobs:
### If the current version is found
if [[ $current_version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
### If the tag exists, delete it from both local and remote
git fetch --tags
if git tag -l | grep -q "$current_version"; then
git fetch --tags
git tag -d "$current_version"
git push origin ":refs/tags/$current_version"
fi
Expand Down

0 comments on commit cfb4b50

Please sign in to comment.