Skip to content

[Feature]: Set retention for GitHub Actions automatic artifact #6266

Description

@duchacekjan

Problem Statement

Hi,
I have enabled automatic artifact upload following docs.
Only problem is that this automatic artifact has no option to set retention. I.e. 5 days.
So I ended up to go through each workflow run and manually delete them. Mainly because of Actions storage quota

Proposed Solution

I would like if there was an option to set retention in days like I can do when manually uploading artifact.
My suggestion is to define env variable in workflow, i.e. TUNIT_ARTIFACT_RETENTION_DAYS in given test run

Alternatives Considered

I can always process it manually to read test results and show the summary but it is not as convenient as it is your implementation

Feature Category

Test Output / Reporting

How important is this feature to you?

Important - significantly impacts my workflow

Additional Context

No response

Contribution

  • I'm willing to submit a pull request for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions