mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
CI: fix ccache key to use branch name instead of merge ref
github.ref_name resolves to '26367/merge' for pull_request events, causing cache misses. Use github.head_ref (PR source branch) with fallback to github.ref_name for push events. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
@@ -35,9 +35,9 @@ jobs:
|
|||||||
uses: runs-on/cache/restore@v4
|
uses: runs-on/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.ccache
|
path: ~/.ccache
|
||||||
key: ccache-clang-tidy-${{ github.ref_name }}
|
key: ccache-clang-tidy-${{ github.head_ref || github.ref_name }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache-clang-tidy-${{ github.ref_name }}-
|
ccache-clang-tidy-${{ github.head_ref || github.ref_name }}-
|
||||||
ccache-clang-tidy-main-
|
ccache-clang-tidy-main-
|
||||||
ccache-clang-tidy-
|
ccache-clang-tidy-
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user