Automated Package Cleanup #14
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: Automated Package Cleanup | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 0' # Every Sunday at 00:00 UTC | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| cleanup: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| strategy: | |
| matrix: | |
| package: [universal-telemetry, car-jitsi-client, pecan, file-uploader, lap-detector, slackbot] | |
| steps: | |
| - name: Delete old package versions | |
| uses: snok/container-retention-policy@v2 | |
| with: | |
| image-names: ${{ matrix.package }} | |
| cut-off: 5 versions | |
| keep-at-least: 5 | |
| skip-tags: latest, test-latest | |
| account-type: org | |
| org-name: Western-Formula-Racing | |
| token: ${{ secrets.GITHUB_TOKEN }} |