Skip to content

Build with GHC-9.8: no more head, tail, init, last (x-partial warning) #1

Build with GHC-9.8: no more head, tail, init, last (x-partial warning)

Build with GHC-9.8: no more head, tail, init, last (x-partial warning) #1

######################################################
## ##
## !!!! Autogenerated YAML file, do not edit !!!! ##
## ##
## Edit source in /src/github/workflows/ instead! ##
## ##
######################################################
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Cleanup
run: |
gh extension install actions/gh-actions-cache
REPO=${{ github.repository }}
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
## Andreas, 2023-01-23: Do not swallow errors here!
# set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
echo "- ${cacheKey}"
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
name: Clear cache of closed PR
'on':
pull_request:
types:
- closed