Delete old workflow runs #760
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: Delete old workflow runs | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
env: | |
HAS_SECRETS: ${{ secrets.HAS_SECRETS }} | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 25 | |
name: Delete old workflow runs | |
steps: | |
- name: Delete old workflow runs | |
uses: MajorScruffy/[email protected] | |
with: | |
repository: ${{ github.repository }} | |
older-than-seconds: 43200000 # 500 days | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |