From fab33a1657f85f26748fe73f6c02245d40fda93c Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Tue, 31 Jan 2023 11:22:49 -0800 Subject: [PATCH] Add fully formed ref of the merge branch in cache cleanup action --- .../caching-dependencies-to-speed-up-workflows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md b/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md index 3fb5f8f03bc5..aa673bb904e5 100644 --- a/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md +++ b/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md @@ -344,7 +344,7 @@ jobs: gh extension install actions/gh-actions-cache REPO={% raw %}${{ github.repository }}{% endraw %} - BRANCH={% raw %}${{ github.ref }}{% endraw %} + BRANCH="refs/pull/{% raw %}${{ github.event.pull_request.number }}{% endraw %}/merge" echo "Fetching list of cache key" cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )