-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to delete artifacts uploaded by actions/upload-artifact@v4
#14
Comments
Hi @muzimuzhi, thanks for bringing this to my attention. I've prepared a pull request (#17) that introduces support for |
Thanks! I confirm with #17 now Looking forward to a v4.0.0 release. BTW then two |
If you experience any problems, please let me know. Happy holidays. |
I have just upgraded our upload/download actions from @V3 to @v4 - and also tried updating this action to @v4 Exactly the same setup with all actions@v3 worked. One thing though - the I have tried:
I have then tried deleting the artifact inside the same job in a subsequent step instead of in the next job. This worked. This is the upload-step in one job: I'd greatly appreciate any ideas to what I'm doing wrong. |
@rolfboom Seems like related to workflow permissions, see a similar post https://github.com/orgs/community/discussions/60820. BTW, better to raise a new issue. |
For me the solution was to add
|
An example workflow: https://github.com/muzimuzhi/hello-github-actions/actions/runs/7256001370
More comparisons can be found in muzimuzhi/hello-github-actions#24. It seems changes more than a naive package upgrading are needed (I'm not a front-end developer). Also the
listArtifacts()
function from@actions/artifact
might be helpful.Several breaking changes were introduced in
actions/upload-artifact@v4
, see@actions/artifact
https://github.com/actions/toolkit/tree/main/packages/artifactThe text was updated successfully, but these errors were encountered: