Skip to content

Bump psf/black from 24.3.0 to 24.4.2 #13

Bump psf/black from 24.3.0 to 24.4.2

Bump psf/black from 24.3.0 to 24.4.2 #13

Workflow file for this run

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