Skip to content
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 old artifacts after a successfull action #699

Closed
JoseQuintas opened this issue Jan 26, 2021 · 4 comments
Closed

Delete old artifacts after a successfull action #699

JoseQuintas opened this issue Jan 26, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@JoseQuintas
Copy link

JoseQuintas commented Jan 26, 2021

Imagine this situation:

An automatic workflow to create artifacts after each commit: 300MB of artifact
20 commits on each day x 90 days x 300MB = 540.000MB = 540GB
How to delete old runs of the same artifact after successfull creation?
This will reduce from 540GB to 300MB, and do not need to wait for 90 days.

At momment, may be I can create scripts to search what to delete.
Is there exists actions to delete specific workflow run or a list of workflow runs
or old runs of same workflow, when current workflow is sucessfull ?
From 540GB to 300MB, there exists a big difference, to user and to github.

Another option is to have repo artifacts, like release or pack.
Each workflow could replace the repo artifact, and not the workflow artifact.
Think about to reduce from 540GB to 300MB.

And we are talking about ONE workflow, think about all repositories on github, and how many space this can reduce at all.

@JoseQuintas JoseQuintas added the enhancement New feature or request label Jan 26, 2021
@jdrydn
Copy link

jdrydn commented Jan 26, 2021

Similar discussion happening here: actions/upload-artifact#5

@jdrydn
Copy link

jdrydn commented Jan 26, 2021

@JoseQuintas Have you considered setting the retention period?

@JoseQuintas
Copy link
Author

Yes, but on this way, if no commit no artifact.

@thboop
Copy link
Collaborator

thboop commented Apr 30, 2021

Hey @JoseQuintas, we have customizable retention periods per artifact. You can set that at a repo or organization level, or in the job

Can you describe what you want in more detail beyond that? We strongly recommend using the retention settings as a way to cleanup.

if no commit no artifact.

I'm not sure what you mean by this, could you rephrase?

I'm going to close this out for now, but we can reopen once we understand the feature request better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants