chore(deps): update golangci/golangci-lint-action digest to 2086983 #99
Workflow file for this run
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: Cache cleanup | |
on: | |
workflow_dispatch: {} | |
pull_request: | |
types: | |
- closed | |
permissions: | |
actions: write | |
contents: read | |
jobs: | |
cleanup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cleanup | |
run: | | |
echo "Fetching list of cache keys" | |
gh cache list --ref "$BRANCH" --limit 100 --json id --jq '.[].id' | while IFS= read -r cacheKey; do | |
## Setting this to not fail the workflow while deleting cache keys. | |
set +e | |
echo "Deleting cache: $cacheKey" | |
gh cache delete "$cacheKey" | |
done | |
echo "Done" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_REPO: ${{ github.repository }} | |
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge |