We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c450cb commit 2ed023cCopy full SHA for 2ed023c
1 file changed
.github/workflows/clear-cache.yaml
@@ -9,14 +9,16 @@ on:
9
jobs:
10
cleanup:
11
runs-on: ubuntu-latest
12
+ permissions:
13
+ actions: write
14
steps:
15
- name: Cleanup caches for closed PR
16
# remove all cache entries for this PR
17
# caches usability hierarchy : master → PR
18
# other PRs / master cannot reuse them
19
# so clear them when the PR is closed or merged
20
run: |
- gh cache list --ref ${{ github.ref }} --json id \
21
+ gh cache list --ref refs/pull/${{ github.event.pull_request.number }}/merge --json id \
22
| jq -r '.[].id' \
23
| xargs -I{} gh cache delete {}
24
env:
0 commit comments