Skip to content

Commit c576fa1

Browse files
authored
fix(workflow): clean caches from source branch on PR merge (#174)
1 parent 5eaba20 commit c576fa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cache-cleanup-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
gh extension install actions/gh-actions-cache
1818
1919
REPO=${{ github.repository }}
20-
BRANCH=${{ github.ref }}
20+
BRANCH=${{ github.head_ref }}
2121
2222
echo "Fetching list of cache key"
2323
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )

0 commit comments

Comments
 (0)