Skip to content

Commit

Permalink
DEV: delete assets before deleting the release
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothkannans committed Nov 4, 2024
1 parent 130a5bf commit 89710c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ jobs:
})
if (release) {
await github.rest.repos.deleteRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.data.id
})
release.assets.forEach(async (asset) => {
await github.rest.repos.deleteReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
asset_id: asset.id
})
})
await github.rest.repos.deleteRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.data.id
})
}
- name: Pre-release
uses: softprops/[email protected]
Expand Down

0 comments on commit 89710c9

Please sign in to comment.