azanir/delete-workflows-run

An action to delete workflow runs in a repository.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Jun 2, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: azanir/delete-workflows-run@1f50d40316b055f1bec75529dc84b45be8cdc536 # 1.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
tokenAuthentication tokenyes${{ github.token }}
baseUrlBase API URLnohttps://api.github.com
repositoryName of the repositoryyes${{ github.repository }}
retain_daysDays-worth of runs to keep for each workflowyes5
keep_minimum_runsMinimum runs to keep for each workflowyes6
delete_workflow_patternName or filename of the workflow (if not set, all workflows are targeted)no
delete_workflow_by_state_patternFilter workflows by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manuallyno
delete_run_by_conclusion_patternRemove runs based on conclusion: action_required, cancelled, failure, skipped, successno
dry_runLogs simulated changes, no deletions are performednofalse
check_branch_existenceIf the workflow was triggered by a branch, the branch must be deleted before the workflow run is deleted as well.nofalse
check_pullrequest_existIf the run is linked to a pull request, the deletion is skipped.nofalse

no outputs