Clean workflows #393
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 workflows | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
workflow_dispatch: | |
jobs: | |
clean_old_workflow: | |
runs-on: ubuntu-latest | |
env: | |
DRY: false | |
steps: | |
- name: Delete workflow runs | |
uses: dmvict/clean-workflow-runs@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
save_period: 30 | |
dry: ${{ env.DRY }} | |
- name: Delete workflow runs | |
uses: dmvict/clean-workflow-runs@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
run_conclusions: | | |
action_required | |
cancelled | |
failure | |
neutral | |
skipped | |
stale | |
timed_out | |
save_period: 5 | |
save_min_runs_number: 0 | |
dry: ${{ env.DRY }} |