Skip to content

Commit

Permalink
ci(latest): use github cli for cleanup of release and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeratoxx committed Mar 2, 2024
1 parent a1080b1 commit 29afdbd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: Get repo information
run: |
echo "Default branch is: ${{ github.event.repository.default_branch }}"
Expand All @@ -20,11 +22,11 @@ jobs:
run: |
echo "DEV_VERSION=0.0.0" >> $GITHUB_ENV
- uses: dev-drprasad/[email protected] # PRERELEASE is v1.0 and can also be used to test and give us feedback
with:
tag_name: v${{ env.DEV_VERSION }}
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_release: true
- name: Delete Release and Tag
run: gh release delete v${{ env.DEV_VERSION }} --cleanup-tag
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push tag
id: push_tag
Expand Down

0 comments on commit 29afdbd

Please sign in to comment.