Skip to content

Commit

Permalink
Fixing cache cleanup (#2124)
Browse files Browse the repository at this point in the history
* Removing branch

* test
  • Loading branch information
germa89 authored Jun 22, 2023
1 parent ad6072c commit 109e9b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cache_cleaner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cleanup caches by a branch
name: cleanup caches
on:
workflow_dispatch:
pull_request:
Expand Down Expand Up @@ -40,6 +40,7 @@ jobs:
gh extension install actions/gh-actions-cache
REPO=${{ github.repository }}
echo $REPO
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO | cut -f 1 )
Expand All @@ -49,7 +50,7 @@ jobs:
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm && echo "Deleting cache with key: $cacheKey"
gh actions-cache delete $cacheKey -R $REPO --confirm && echo "Deleting cache with key: $cacheKey"
done
echo "Done"
env:
Expand Down

0 comments on commit 109e9b1

Please sign in to comment.