We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c131970 commit 2668013Copy full SHA for 2668013
.github/workflows/clear-pr-caches.yml
@@ -9,9 +9,16 @@ permissions:
9
10
jobs:
11
clear-caches:
12
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
13
steps:
14
- name: clear-caches
15
- uses: theAngularGuy/clear-cache-of-pull-request@60c83956d63c7b3745d6cde10d711aa0e50c2501
16
- with:
17
- github-token: ${{ secrets.GITHUB_TOKEN }}
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_REPO: ${{ github.repository }}
18
+ BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
19
+ run: |
20
+ cacheKeysForPR=$(gh cache list --ref "$BRANCH" --limit 100 --json id --jq '.[].id')
21
+ set +e
22
+ for cacheKey in $cacheKeysForPR; do
23
+ gh cache delete "$cacheKey"
24
+ done
0 commit comments