We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54cf47a commit d6793ceCopy full SHA for d6793ce
.github/workflows/cleanup_caches.yml
@@ -16,6 +16,7 @@ on:
16
permissions:
17
contents: read
18
packages: read
19
+ actions: write
20
21
jobs:
22
check_paths:
@@ -30,17 +31,15 @@ jobs:
30
31
steps:
32
- name: Cleanup
33
run: |
- gh extension install actions/gh-actions-cache
34
-
35
echo "Fetching list of cache key"
36
- cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
+ cacheKeysForPR=$(gh cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
37
38
## Setting this to not fail the workflow while deleting cache keys.
39
set +e
40
echo "Deleting caches..."
41
for cacheKey in $cacheKeysForPR
42
do
43
- gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
+ gh cache delete $cacheKey -R $REPO -B $BRANCH --confirm
44
done
45
echo "Done"
46
env:
0 commit comments