From 01f380d654a9a121f80e0c6b2c862ba8509e40cf Mon Sep 17 00:00:00 2001 From: Deepak Dahiya <59823596+t-dedah@users.noreply.github.com> Date: Tue, 14 Feb 2023 04:32:39 +0530 Subject: [PATCH] Updated branch in Force deletion of caches Fixes this issue https://github.com/actions/cache/issues/1107 --- tips-and-workarounds.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tips-and-workarounds.md b/tips-and-workarounds.md index 0cf05a4..ee9a8f3 100644 --- a/tips-and-workarounds.md +++ b/tips-and-workarounds.md @@ -53,7 +53,7 @@ jobs: gh extension install actions/gh-actions-cache REPO=${{ github.repository }} - BRANCH=${{ github.ref }} + BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge" echo "Fetching list of cache key" cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )