chore(deps): bump golang.org/x/text from 0.20.0 to 0.21.0 #143
Workflow file for this run
This file contains 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: Clean up per-branch caches | |
on: | |
pull_request: | |
types: | |
- closed | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
cleanup: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Cleanup | |
run: | | |
gh extension install actions/gh-actions-cache | |
BRANCH=refs/pull/${{ github.event.pull_request.number }}/merge | |
echo "Fetching list of cache keys" | |
keys=$(gh actions-cache list -R $GITHUB_REPOSITORY -B $BRANCH -L 100 | cut -f 1) | |
set +e | |
echo "Deleting caches..." | |
for key in $keys ; do | |
gh actions-cache delete $key -R $GITHUB_REPOSITORY -B $BRANCH --confirm | |
done | |
echo "Done" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |