Skip to content

Commit

Permalink
ci: fix draft deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Itsusinn committed Sep 24, 2024
1 parent 75090b3 commit 3107385
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,11 @@ jobs:
git push origin :refs/tags/latest || true
# Create local tag
git tag latest
# Deleted all drafts
gh release list | grep Draft | awk '{print $1 " \t"}' | while read -r line; do gh release delete -y "$line"; done
- name: Delete drafts
uses: hugo19941994/delete-draft-releases@v1.0.0
env:
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Clean git tag
if: startsWith(github.ref, 'refs/tags/v*')
Expand Down

0 comments on commit 3107385

Please sign in to comment.