Skip to content

Update dependency square/square to v38.1.0.20240919 #163

Update dependency square/square to v38.1.0.20240919

Update dependency square/square to v38.1.0.20240919 #163

Workflow file for this run

---
name: Remove Caches
on:
pull_request:
types:
- closed
jobs:
cleanup:
runs-on: ubuntu-24.04
steps:
- name: Remove Caches
run: |
set -x
gh extension install actions/gh-actions-cache
echo "Fetching list of cache keys"
cacheKeysForPR=$(gh actions-cache list -R ${{ github.repository }} -B refs/pull/${{ github.event.pull_request.number }}/merge -L 100 | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}