-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Delete Artifacts using @actions/artifact #380
Comments
Agreed - additionally the artifacts using the lib are scoped to the workflow only so there are some other challenges . I wanted to make sure linting occurred when a forked PR was created and ended up needing to do some magic with the rest api directly to get it all working. https://github.com/bradennapier/eslint-plus-action/blob/master/src/artifacts.ts This type of application should be natively supported without question - especially since it solves the security problem, but it is also an example of how you can use the rest api for it. I have some extra pieces in there which may not be necessary but I haven't had a change to test without yet (I am deleting then remaking each time to make sure as I wasn't positive if it would overwrite if different workflows were creating them). |
+1 for deploying some artifacts when using other deployment. Now I have to sleep for few seconds to make this work. |
When is this expected to be implemented? |
This limitation is removed in
|
It is currently possible to delete an artifact that is associated with a workflow run using the GitHub API: https://developer.github.com/v3/actions/artifacts/#delete-an-artifact
This API is limited though because an artifact is not available until after a run is complete
The
@actions/artifact
package should add a publicdeleteArtifact()
method that will allow users to delete an artifact during a runThis will make it easier to support certain types types of scenarios such as retention
The text was updated successfully, but these errors were encountered: