Upload-artifact: Upload transient artifact

Created on 23 Dec 2019  路  3Comments  路  Source: actions/upload-artifact

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.

enhancement retention

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!

All 3 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Niceplace picture Niceplace  路  5Comments

wchen342 picture wchen342  路  4Comments

medyagh picture medyagh  路  5Comments

kcgen picture kcgen  路  6Comments

tysonite picture tysonite  路  9Comments