commit 2b09b39aec43c33a6db3801aea69380683e39a26
parent ec932961cc5596009f3179edd620bc778a1503d7
Author: dundargoc <33953936+dundargoc@users.noreply.github.com>
Date: Thu, 9 Feb 2023 22:25:44 +0100
ci: remove base branch from cache key (#22195)
Using the base branch as cache means that pull requests won't be able to
use the cache from the master branch, since the master branch cache
doesn't have a base_ref as it's generated from a push. Removing base_ref
makes the cache key from master and PR branch the same, provided the any
build files don't change.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/actions/cache/action.yml b/.github/actions/cache/action.yml
@@ -3,7 +3,7 @@ description: "This action caches neovim dependencies"
runs:
using: "composite"
steps:
- - run: echo "CACHE_KEY=${{ github.job }}-${{ github.base_ref }}" >> $GITHUB_ENV
+ - run: echo "CACHE_KEY=${{ github.job }}" >> $GITHUB_ENV
shell: bash
- if: ${{ matrix }}