Clean up old releases #44
This file contains hidden or 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 up old releases | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # At minute 0 past hour 0. (see https://crontab.guru) | |
| - cron: '00 00 * * *' | |
| jobs: | |
| delete_releases: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup Python | |
| uses: actions/[email protected] | |
| with: | |
| python-version: "3.10" | |
| - name: Delete from here | |
| shell: bash | |
| run: | | |
| pip install PyGithub | |
| GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python scripts/clean_gh_releases.py |