mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
use base_ref to calculate the cache-keys when running in a PR.
This commit is contained in:
4
.github/workflows/compile-queries.yml
vendored
4
.github/workflows/compile-queries.yml
vendored
@@ -31,8 +31,8 @@ jobs:
|
||||
path: '*/ql/src/.cache'
|
||||
key: codeql-compile-pr-${{ github.sha }} # deliberately not using the `compile-compile-main` keys here.
|
||||
restore-keys: |
|
||||
codeql-compile-main-${{ env.merge-base }}
|
||||
codeql-compile-main-
|
||||
codeql-compile-${{ github.base_ref }}-${{ env.merge-base }}
|
||||
codeql-compile-${{ github.base_ref }}-
|
||||
- name: Fill CodeQL query compilation cache - main
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
uses: actions/cache@v3
|
||||
|
||||
Reference in New Issue
Block a user