From 29fefeeada10d30ffa1e297a947a0300f1ffeb36 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Mon, 9 Feb 2026 14:28:48 -0800 Subject: [PATCH] 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 --- .github/workflows/clang-tidy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index f3b917cbd0..46e1247c68 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -35,9 +35,9 @@ jobs: uses: runs-on/cache/restore@v4 with: path: ~/.ccache - key: ccache-clang-tidy-${{ github.ref_name }} + key: ccache-clang-tidy-${{ github.head_ref || github.ref_name }} restore-keys: | - ccache-clang-tidy-${{ github.ref_name }}- + ccache-clang-tidy-${{ github.head_ref || github.ref_name }}- ccache-clang-tidy-main- ccache-clang-tidy-