Clean Old Data #579
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
--- | |
name: Clean Old Data | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
permissions: read-all | |
jobs: | |
clean: | |
runs-on: ubuntu-22.04 | |
steps: | |
# https://github.com/Mattraks/delete-workflow-runs | |
- name: Remove expired workflow runs | |
uses: Mattraks/delete-workflow-runs@c3872d103f18a947d291cd2c3c81c90397b4b830 | |
with: | |
token: ${{ secrets.FOR_WEBHOOKS_SECRET }} | |
retain_days: 1 | |
keep_minimum_runs: 2 |