diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-02-17 01:51:01 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-20 15:08:49 +0100 |
commit | 0303cde0db107ce8dd53c7717207e2afffd5e03e (patch) | |
tree | 0629b9b984950c3b275f4b3fdaadf801f4ef7b8c /.github | |
parent | 6b07e496a4a9a448f235ec1c1c7042630046bb8a (diff) | |
download | pylint-git-0303cde0db107ce8dd53c7717207e2afffd5e03e.tar.gz |
Small update to pre-commit hash generation
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yaml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 69e50dc15..7382ca0da 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -67,14 +67,15 @@ jobs: - name: Generate pre-commit restore key id: generate-pre-commit-key run: >- - echo "::set-output name=key::${{ runner.os }}-pre-commit-${{ - env.CACHE_VERSION }}-${{ hashFiles('.pre-commit-config.yaml') }}" + echo "::set-output name=key::pre-commit-${{ env.CACHE_VERSION }}-${{ + hashFiles('.pre-commit-config.yaml') }}" - name: Restore pre-commit environment id: cache-precommit uses: actions/cache@v2 with: path: ${{ env.PRE_COMMIT_CACHE }} - key: ${{ steps.generate-pre-commit-key.outputs.key }} + key: >- + ${{ runner.os }}-${{ steps.generate-pre-commit-key.outputs.key }} restore-keys: | ${{ runner.os }}-pre-commit-${{ env.CACHE_VERSION }}- - name: Install pre-commit dependencies @@ -113,7 +114,7 @@ jobs: uses: actions/cache@v2 with: path: ${{ env.PRE_COMMIT_CACHE }} - key: ${{ needs.prepare-base.outputs.pre-commit-key }} + key: ${{ runner.os }}-${{ needs.prepare-base.outputs.pre-commit-key }} - name: Fail job if pre-commit cache restore failed if: steps.cache-precommit.outputs.cache-hit != 'true' run: | |