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 1/2] 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 ) From 5b9b79438bcf7f016d3ae79f8041d30fbe0440a7 Mon Sep 17 00:00:00 2001 From: Deepak Dahiya <59823596+t-dedah@users.noreply.github.com> Date: Tue, 14 Feb 2023 04:38:03 +0530 Subject: [PATCH 2/2] Update tips-and-workarounds.md --- 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 ee9a8f3..7c1bb4a 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="refs/pull/${{ github.event.pull_request.number }}/merge" + 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 )