Files
Tobias Brunner 6f99862da8 github: Move permissions to the individual jobs
SonarQube complains about workflow-level "allow" permissions.
2026-05-27 13:31:51 +02:00

16 lines
431 B
YAML

name: Cache cleanup
on: delete
jobs:
cleanup:
runs-on: ubuntu-slim
permissions:
actions: write
steps:
- env:
GH_TOKEN: ${{ github.token }}
# github.ref for deletes is the default branch, so we get the ref from
# the event, which is not the full ref
run: gh cache delete --repo ${{ github.repository }} -r refs/heads/${{ github.event.ref }} --all --succeed-on-no-caches