-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add action for prune-github-workflow-runs
- Loading branch information
Showing
7 changed files
with
665 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Prune Github Workflow Runs' | ||
description: 'Delete obsolete runs of workflows that do not exist anymore in the given repo.' | ||
|
||
inputs: | ||
token: | ||
description: GitHub access token | ||
required: true | ||
owner: | ||
description: Repository owner | ||
required: false | ||
default: ${{ github.repository_owner }} | ||
repo: | ||
description: Repository name | ||
required: false | ||
default: ${{ github.event.repository.name }} | ||
dry-run: | ||
description: 'Do not delete runs, just print them' | ||
required: false | ||
default: 'false' | ||
runs: | ||
using: node20 | ||
main: 'lib/main.js' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "prune-github-workflow-runs", | ||
"version": "0.0.1", | ||
"main": "lib/main.js", | ||
"scripts": { | ||
"build": "tsc" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@actions/core": "^1.9.1", | ||
"@actions/github": "^5.0.3", | ||
"@actions/glob": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.10.5", | ||
"ts-node": "^10.8.0", | ||
"typescript": "^4.4.4" | ||
} | ||
} |
Oops, something went wrong.