diff --git a/.github/workflows/macos11.yml b/.github/workflows/macos11.yml index e421e096dd96..f77b630f70db 100644 --- a/.github/workflows/macos11.yml +++ b/.github/workflows/macos11.yml @@ -17,7 +17,7 @@ on: jobs: macOS_11: - if: ${{ (github.event.label.name == 'CI macos-all') || (github.event.label.name == 'CI macos-11') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }} + if: contains(github.event.pull_request.labels.*.name, 'CI macos-all') || contains(github.event.pull_request.labels.*.name, 'CI macos-11') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') name: macOS-11_unstable.${{ github.run_id }}.${{ github.run_attempt }} uses: ./.github/workflows/macos-generation.yml with: diff --git a/.github/workflows/macos12.yml b/.github/workflows/macos12.yml index 9fc11a203c42..bb7fdd271aab 100644 --- a/.github/workflows/macos12.yml +++ b/.github/workflows/macos12.yml @@ -17,7 +17,7 @@ on: jobs: macOS_12: - if: ${{ (github.event.label.name == 'CI macos-all') || (github.event.label.name == 'CI macos-12') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }} + if: contains(github.event.pull_request.labels.*.name, 'CI macos-all') || contains(github.event.pull_request.labels.*.name, 'CI macos-12') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') name: macOS-12_unstable.${{ github.run_id }}.${{ github.run_attempt }} uses: ./.github/workflows/macos-generation.yml with: diff --git a/.github/workflows/ubuntu2004.yml b/.github/workflows/ubuntu2004.yml index 17b462675b77..26f2f2d754be 100644 --- a/.github/workflows/ubuntu2004.yml +++ b/.github/workflows/ubuntu2004.yml @@ -17,7 +17,7 @@ on: jobs: Ubuntu_2004: - if: ${{ (github.event.label.name == 'CI ubuntu-all') || (github.event.label.name == 'CI ubuntu-2004') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }} + if: contains(github.event.pull_request.labels.*.name, 'CI ubuntu-all') || contains(github.event.pull_request.labels.*.name, 'CI ubuntu-2004') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') uses: ./.github/workflows/ubuntu-win-generation.yml with: image_name: 'ubuntu2004' diff --git a/.github/workflows/ubuntu2204.yml b/.github/workflows/ubuntu2204.yml index bf3ff00f3880..f898fa9126af 100644 --- a/.github/workflows/ubuntu2204.yml +++ b/.github/workflows/ubuntu2204.yml @@ -17,7 +17,7 @@ on: jobs: Ubuntu_2204: - if: ${{ (github.event.label.name == 'CI ubuntu-all') || (github.event.label.name == 'CI ubuntu-2204') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }} + if: contains(github.event.pull_request.labels.*.name, 'CI ubuntu-all') || contains(github.event.pull_request.labels.*.name, 'CI ubuntu-2204') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') uses: ./.github/workflows/ubuntu-win-generation.yml with: image_name: 'ubuntu2204' diff --git a/.github/workflows/windows2019.yml b/.github/workflows/windows2019.yml index 27d2a082418a..a8ed8cb47eff 100644 --- a/.github/workflows/windows2019.yml +++ b/.github/workflows/windows2019.yml @@ -17,7 +17,7 @@ on: jobs: Windows_2019: - if: ${{ (github.event.label.name == 'CI windows-all') || (github.event.label.name == 'CI windows-2019') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }} + if: contains(github.event.pull_request.labels.*.name, 'CI windows-all') || contains(github.event.pull_request.labels.*.name, 'CI windows-2019') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') uses: ./.github/workflows/ubuntu-win-generation.yml with: image_name: 'windows2019' diff --git a/.github/workflows/windows2022.yml b/.github/workflows/windows2022.yml index ac7e93fb8786..f3ed7f3061ae 100644 --- a/.github/workflows/windows2022.yml +++ b/.github/workflows/windows2022.yml @@ -17,7 +17,7 @@ on: jobs: Windows_2022: - if: ${{ (github.event.label.name == 'CI windows-all') || (github.event.label.name == 'CI windows-2022') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') }} + if: contains(github.event.pull_request.labels.*.name, 'CI windows-all') || contains(github.event.pull_request.labels.*.name, 'CI windows-2022') || (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') uses: ./.github/workflows/ubuntu-win-generation.yml with: image_name: 'windows2022'