fix: use github.sha in key of compilation cache

GITHUB_SHA seems to be empty for push events
This commit is contained in:
youben11
2022-03-07 17:36:56 +01:00
parent 67e90eb498
commit e45835378f

View File

@@ -163,7 +163,7 @@ jobs:
uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
key: ${{ runner.os }}-compilation-cache-${{ env.GITHUB_SHA }}
key: ${{ runner.os }}-compilation-cache-${{ github.sha }}
- name: Cache compilation (pull_request)
if: github.event_name == 'pull_request'