🧹 Cleanup old artifacts #1718
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: 🧹 Cleanup old artifacts | |
# Run cleanup workflow at the end of every day | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
clean: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🧹 Cleanup old workflow artifacts | |
uses: kolpav/purge-artifacts-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
expire-in: 14days # all artifacts at least 14 days old |