ci: "Cannot delete asset from an immutable release" errors after merging PRs
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Some jobs from the CICD.yml and make.yml workflows recently started to fail at the "Publish latest commit" and "Publish" steps, after merging a PR, with an error like:
♻️ Deleting previously uploaded asset coreutils-arm-unknown-linux-gnueabihf.tar.gz...
Error: Validation Failed: {"resource":"ReleaseAsset","code":"custom","message":"Cannot delete asset from an immutable release"}
See, for example, https://github.com/uutils/coreutils/actions/runs/31361421079/job/93371619540
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the failing "Publish latest commit" and "Publish" steps in .github/workflows/CICD.yml and make.yml, then inspect the linked Actions run and the asset deletion behavior. Determine why these jobs target an immutable release and adjust the workflow behavior so publishing completes without the ReleaseAsset validation error; verify both workflows after merging a PR.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100