diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 2b912eea..4f7cd38c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -107,6 +107,7 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$GITHUB_REPOSITORY/releases/tags/v$VERSION) + # Delete release release_id=$(echo "$response" | jq -r '.id') curl -fsL \ -X DELETE \ @@ -114,6 +115,14 @@ jobs: -H "Authorization: Bearer ${GITHUB_TOKEN}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$GITHUB_REPOSITORY/releases/$release_id + + # Delete tag + curl -fsL \ + -X DELETE \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${GITHUB_TOKEN}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/$GITHUB_REPOSITORY/git/refs/tags/v$VERSION env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}