diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-09 22:25:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 22:25:44 +0100 |
commit | 2b09b39aec43c33a6db3801aea69380683e39a26 (patch) | |
tree | eab2d279c65d25fe17bd15a1228c5fe3a4ee885b | |
parent | ec932961cc5596009f3179edd620bc778a1503d7 (diff) | |
download | rneovim-2b09b39aec43c33a6db3801aea69380683e39a26.tar.gz rneovim-2b09b39aec43c33a6db3801aea69380683e39a26.tar.bz2 rneovim-2b09b39aec43c33a6db3801aea69380683e39a26.zip |
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.
-rw-r--r-- | .github/actions/cache/action.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/actions/cache/action.yml b/.github/actions/cache/action.yml index 858045c02a..d6a5d1e43f 100644 --- 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 }} |