From 81b728193625a15a55fcce4c6eb6187358533785 Mon Sep 17 00:00:00 2001 From: Deepak Dahiya <59823596+t-dedah@users.noreply.github.com> Date: Tue, 14 Feb 2023 01:11:58 -0800 Subject: [PATCH] Updated branch in Force deletion of caches (#1108) * Updated branch in Force deletion of caches Fixes this issue https://github.com/actions/cache/issues/1107 * 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 0cf05a4..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=${{ 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 )