Skip to content

Commit

Permalink
feat: delete all previous ISOs when re-releasing (blue-build#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev authored and nerdy0901 committed Nov 21, 2023
1 parent f235077 commit 5be41c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: |
if gh release list -R ${{ github.repository_owner }}/${{ github.event.repository.name }} | grep "auto-iso"; then
gh release view auto-iso --json assets -q .assets[].name | xargs -L 1 gh release delete-asset auto-iso
gh release upload auto-iso ${{ steps.isogenerator.outputs.iso-path }} -R ${{ github.repository_owner }}/${{ github.event.repository.name }} --clobber
else
gh release create auto-iso ${{ steps.isogenerator.outputs.iso-path }} -t ISO -n "This is an automatically generated ISO release." -R ${{ github.repository_owner }}/${{ github.event.repository.name }}
Expand Down

0 comments on commit 5be41c4

Please sign in to comment.