Skip to content

Delete old artifacts after a successfull action #699

@JoseQuintas

Description

@JoseQuintas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions