Skip to content

Commit

Permalink
ci: only delete old release tag if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
metaclips committed Mar 18, 2024
1 parent 6c482d3 commit 57f3076
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release-bump-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bash -ex ./tools/scripts/release/redo-draft-release.sh
# Delete the old git tag, it'll be recreated when we are creating a new draft binary.
gh release delete ${{ inputs.redo_release_tag }} --cleanup-tag
if gh release view ${{ inputs.redo_release_tag }}; then
gh release delete ${{ inputs.redo_release_tag }} --cleanup-tag
fi
- name: Bump Ockam
if: ${{ inputs.redo_release_tag == '' }}
Expand Down

0 comments on commit 57f3076

Please sign in to comment.