mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 09:02:40 +00:00
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.
This commit is contained in:
2
.github/actions/cache/action.yml
vendored
2
.github/actions/cache/action.yml
vendored
@@ -3,7 +3,7 @@ description: "This action caches neovim dependencies"
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: echo "CACHE_KEY=${{ github.job }}-${{ github.base_ref }}" >> $GITHUB_ENV
|
- run: echo "CACHE_KEY=${{ github.job }}" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- if: ${{ matrix }}
|
- if: ${{ matrix }}
|
||||||
|
|||||||
Reference in New Issue
Block a user