Hello,
Some of my artifacts are transient. They transmit data between jobs but I don't want to keep them.
Ideally, I would like to use actions/upload-artifact like this:
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: myartifact
path: mypath
temporary: true
The temporary (or transient) flag would mark the artifact as transient and automatically delete it when the workflow is done.
Ref #5.
Related (I think this could be more useful if the sole purpose is to transmit data between jobs): https://github.com/actions/download-artifact/issues/20
If retention policies do get added, I'm thinking we'll be able to support this scenario. An expiration time of 0 or something could be used to denote that that artifact should be immediately deleted after the run is complete: https://github.com/actions/upload-artifact/issues/34
You can now set artifact and log retention duration to 1 day and we will clean and delete artifacts right after they expire. You can learn more about this feature here. Feedback is welcome!
Most helpful comment
You can now set artifact and log retention duration to 1 day and we will clean and delete artifacts right after they expire. You can learn more about this feature here. Feedback is welcome!