This repository was archived by the owner on Aug 23, 2026. It is now read-only.
Repository navigation
vacuum #584
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: vacuum | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| delete: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.repository }}-database-publication | |
| cancel-in-progress: false | |
| queue: max | |
| permissions: | |
| actions: write | |
| contents: write | |
| packages: read | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_OWNER: ${{ github.repository_owner }} | |
| GITHUB_REPO: ${{ github.event.repository.name }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Retain database releases | |
| run: | | |
| docker run --rm \ | |
| --env-file <(env | grep -E '^(GITHUB_TOKEN|GITHUB_OWNER|GITHUB_REPO)=') \ | |
| ghcr.io/$GITHUB_OWNER/$GITHUB_REPO:master \ | |
| bkg vacuum-releases | |
| - name: Delete old runs | |
| uses: Mattraks/delete-workflow-runs@v2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| repository: ${{ github.repository }} | |
| retain_days: 3 |