Delete old artifacts #1014
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 artifacts' | |
on: | |
schedule: | |
- cron: '0 1 * * *' # every night at one 'o clock | |
jobs: | |
delete-artifacts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: kolpav/purge-artifacts-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
expire-in: 7days # Setting this to 0 will delete all artifacts |