From 702bb830d21ba86441d6271b65b763eac4f8d3ea Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sat, 10 Jan 2026 00:11:36 +0100 Subject: [PATCH] CI: Change github.ref into github.head_ref This actually allows us to check source branch --- .github/workflows/CI_master.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI_master.yml b/.github/workflows/CI_master.yml index 453b92af1c..2d8c6dbfb0 100644 --- a/.github/workflows/CI_master.yml +++ b/.github/workflows/CI_master.yml @@ -54,21 +54,21 @@ jobs: Ubuntu: needs: [Prepare] - if: "!startsWith(github.ref, 'refs/heads/backport-')" + if: "!startsWith(github.head_ref, 'refs/heads/backport-')" uses: ./.github/workflows/sub_buildUbuntu.yml with: artifactBasename: Ubuntu-${{ github.run_id }} Windows: needs: [Prepare] - if: "!startsWith(github.ref, 'refs/heads/backport-')" + if: "!startsWith(github.head_ref, 'refs/heads/backport-')" uses: ./.github/workflows/sub_buildWindows.yml with: artifactBasename: Windows-${{ github.run_id }} Lint: needs: [Prepare] - if: "!startsWith(github.ref, 'refs/heads/backport-')" + if: "!startsWith(github.head_ref, 'refs/heads/backport-')" uses: ./.github/workflows/sub_lint.yml with: artifactBasename: Lint-${{ github.run_id }}