Skip to content

Commit

Permalink
add action for prune-github-workflow-runs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustielin committed Apr 12, 2024
1 parent 0bdf7a2 commit edfed0e
Show file tree
Hide file tree
Showing 7 changed files with 665 additions and 0 deletions.
22 changes: 22 additions & 0 deletions prune-github-workflow-runs/action.yaml
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'
123 changes: 123 additions & 0 deletions prune-github-workflow-runs/lib/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions prune-github-workflow-runs/lib/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions prune-github-workflow-runs/package.json
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"
}
}
Loading

0 comments on commit edfed0e

Please sign in to comment.