Skip to content

Commit fd6c45b

Browse files
[CI] Update job conditions for GitHub CI workflows (actions#10641)
1 parent 5d31cfb commit fd6c45b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/ubuntu2004.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defaults:
1313

1414
jobs:
1515
Ubuntu_2004:
16-
if: contains(github.event.pull_request.labels.*.name, 'CI ubuntu-all') || contains(github.event.pull_request.labels.*.name, 'CI ubuntu-2004')
16+
if: github.event.label.name == 'CI ubuntu-all' || github.event.label.name == 'CI ubuntu-2004'
1717
uses: ./.github/workflows/trigger-ubuntu-win-build.yml
1818
with:
1919
image_type: 'ubuntu2004'

.github/workflows/ubuntu2204.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defaults:
1313

1414
jobs:
1515
Ubuntu_2204:
16-
if: contains(github.event.pull_request.labels.*.name, 'CI ubuntu-all') || contains(github.event.pull_request.labels.*.name, 'CI ubuntu-2204')
16+
if: github.event.label.name == 'CI ubuntu-all' || github.event.label.name == 'CI ubuntu-2204'
1717
uses: ./.github/workflows/trigger-ubuntu-win-build.yml
1818
with:
1919
image_type: 'ubuntu2204'

.github/workflows/ubuntu2404.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defaults:
1313

1414
jobs:
1515
Ubuntu_2404:
16-
if: contains(github.event.pull_request.labels.*.name, 'CI ubuntu-all') || contains(github.event.pull_request.labels.*.name, 'CI ubuntu-2404')
16+
if: github.event.label.name == 'CI ubuntu-all' || github.event.label.name == 'CI ubuntu-2404'
1717
uses: ./.github/workflows/trigger-ubuntu-win-build.yml
1818
with:
1919
image_type: 'ubuntu2404'

.github/workflows/windows2019.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defaults:
1313

1414
jobs:
1515
Windows_2019:
16-
if: contains(github.event.pull_request.labels.*.name, 'CI windows-all') || contains(github.event.pull_request.labels.*.name, 'CI windows-2019')
16+
if: github.event.label.name == 'CI windows-all' || github.event.label.name == 'CI windows-2019'
1717
uses: ./.github/workflows/trigger-ubuntu-win-build.yml
1818
with:
1919
image_type: 'windows2019'

.github/workflows/windows2022.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defaults:
1313

1414
jobs:
1515
Windows_2022:
16-
if: contains(github.event.pull_request.labels.*.name, 'CI windows-all') || contains(github.event.pull_request.labels.*.name, 'CI windows-2022')
16+
if: github.event.label.name == 'CI windows-all' || github.event.label.name == 'CI windows-2022'
1717
uses: ./.github/workflows/trigger-ubuntu-win-build.yml
1818
with:
1919
image_type: 'windows2022'

0 commit comments

Comments
 (0)