Skip to content

Commit

Permalink
Merge pull request #167 from serokell/rvem/github-autorelease-overwri…
Browse files Browse the repository at this point in the history
…te-tag

[Chore] Overwrite tag with release in 'github.autorelease'
  • Loading branch information
rvem authored Jan 16, 2025
2 parents 72d4460 + 61bc6d2 commit 67c5c3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions overlay/github.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
if [[ ''${OVERWRITE_RELEASE:-false} == true ]]; then
# Delete release if it exists
gh release delete "$release_tag" --yes || true
# Delete the tag if it exists to make sure that 'gh release create' uses the latest commit as a tag target
if git show-ref --tags "$release_tag" --quiet; then
git tag --delete "$release_tag"
git push --force --tags
fi
fi
typeset -a release_args
Expand Down

0 comments on commit 67c5c3e

Please sign in to comment.