summaryrefslogtreecommitdiff
path: root/.github/workflows/cleanup.yml
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-05 21:17:16 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-05 21:17:16 +0400
commit26dfa76faa883c35fe3e5ff4b2b33f4102059a81 (patch)
tree27b71a44b38fb4b64e991146e235ae327c86ef5d /.github/workflows/cleanup.yml
downloadkit-26dfa76faa883c35fe3e5ff4b2b33f4102059a81.zip
Async function & unit-testing
Diffstat (limited to '.github/workflows/cleanup.yml')
-rw-r--r--.github/workflows/cleanup.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml
new file mode 100644
index 0000000..74e8d4a
--- /dev/null
+++ b/.github/workflows/cleanup.yml
@@ -0,0 +1,21 @@
+name: Cleanup
+
+on:
+ schedule:
+ - cron: '0 0 */16 * *'
+ workflow_dispatch:
+
+jobs:
+ delete_runs:
+ permissions:
+ actions: write
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Delete workflow runs
+ uses: Mattraks/delete-workflow-runs@main
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ repository: ${{ github.repository }}
+ retain_days: 30
+ keep_minimum_runs: 4