Cleanup S3 Cache #9
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: Cleanup S3 Cache | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: "Branch name (e.g., 'feature/my-branch'). Leave empty to list all entries." | |
| required: false | |
| type: string | |
| default: "" | |
| key: | |
| description: "Cache key prefix (e.g., 'sccache-Linux-')" | |
| required: false | |
| type: string | |
| default: "" | |
| dry-run: | |
| description: "Preview deletions without executing them" | |
| required: false | |
| type: boolean | |
| default: true | |
| jobs: | |
| cleanup: | |
| runs-on: sonar-xs-public | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: SonarSource/gh-action_cache/cleanup@v1 | |
| with: | |
| branch: ${{ inputs.branch }} | |
| key: ${{ inputs.key }} | |
| dry-run: ${{ inputs.dry-run }} |