Commit 5ba96e9
committed
Delete all previous nightly releases before creating a new one
The `nightly-release.yml` workflow has been updated to remove all previous releases and tags prefixed with "nightly-" before creating a new one.
Previously, the workflow only deleted a single release with the exact tag "nightly". This change ensures that all outdated nightly build artifacts are cleared, not just the most recent one. The script now fetches all releases, filters for those with tags starting with "nightly-", and then iterates through them to delete both the release and its corresponding tag.1 parent ddf37ff commit 5ba96e9
1 file changed
Lines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 23 | + | |
| 24 | + | |
30 | 25 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments