Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Julia Dependency Update #45

Julia Dependency Update

Julia Dependency Update #45

Workflow file for this run

name: Clear cache
on:
workflow_dispatch:
pull_request:
types:
- closed
jobs:
cleanup:
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Cleanup
run: |
echo "Fetching list of cache keys from $BRANCH"
cacheKeysForPR=$(gh cache list --ref $BRANCH --limit 100 --json id --jq '.[].id')
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh cache delete $cacheKey
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: ${{ github.ref }}