Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

GH actions: delete old workflow runs (#4637) [ci skip]

Juerg B356ecf44015f
diff --git a/.github/workflows/delete-runs.yml b/.github/workflows/delete-runs.yml
new file mode 100644
index 00000000..e8e89a1a
--- /dev/null
+++ b/.github/workflows/delete-runs.yml
@@ -0,0 +1,20 @@
+name: Delete workflow runs
+on:
+ workflow_dispatch:
+ inputs:
+ days:
+ description: 'Number of days'
+ required: true
+ default: 120
+
+jobs:
+ del_runs:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Delete workflow runs
+ uses: Mattraks/delete-workflow-runs@main
+ with:
+ token: ${{ github.token }}
+ repository: ${{ github.repository }}
+ retain_days: ${{ github.event.inputs.days }}
+ keep_minimum_runs: 10