CI: Change github.ref into github.head_ref
This actually allows us to check source branch
This commit is contained in:
6
.github/workflows/CI_master.yml
vendored
6
.github/workflows/CI_master.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user