From 67827c95692c441b0e6ca0cc5e60a0a7c61b2b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 29 Jul 2025 16:23:15 +0300 Subject: [PATCH] github: Switch the condition for inputs vs defaults for test-llvm and test-libcxx This makes it easier to run these workflows through a push (by adding an "on:push:" at the start of the files. --- .github/workflows/test-libcxx.yml | 8 ++++---- .github/workflows/test-llvm.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-libcxx.yml b/.github/workflows/test-libcxx.yml index d35e0c5..0866444 100644 --- a/.github/workflows/test-libcxx.yml +++ b/.github/workflows/test-libcxx.yml @@ -29,8 +29,8 @@ jobs: with: workflow: build.yml workflow_conclusion: success - ref: ${{github.event_name == 'schedule' && 'master' || inputs.ref}} - event: ${{github.event_name == 'schedule' && 'schedule' || inputs.pipeline_type}} + ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}} + event: ${{github.event_name == 'workflow_dispatch' && inputs.pipeline_type || 'schedule'}} name: parameters - name: Get build parameters id: get-parameters @@ -57,8 +57,8 @@ jobs: with: workflow: build.yml workflow_conclusion: success - ref: ${{github.event_name == 'schedule' && 'master' || inputs.ref}} - event: ${{github.event_name == 'schedule' && 'schedule' || inputs.pipeline_type}} + ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}} + event: ${{github.event_name == 'workflow_dispatch' && inputs.pipeline_type || 'schedule'}} name: windows-ucrt-${{matrix.arch}}-toolchain - name: Unpack toolchain run: | diff --git a/.github/workflows/test-llvm.yml b/.github/workflows/test-llvm.yml index 8fcad6f..1ca090c 100644 --- a/.github/workflows/test-llvm.yml +++ b/.github/workflows/test-llvm.yml @@ -29,8 +29,8 @@ jobs: with: workflow: build.yml workflow_conclusion: success - ref: ${{github.event_name == 'schedule' && 'master' || inputs.ref}} - event: ${{github.event_name == 'schedule' && 'schedule' || inputs.pipeline_type}} + ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}} + event: ${{github.event_name == 'workflow_dispatch' && inputs.pipeline_type || 'schedule'}} name: parameters - name: Get build parameters id: get-parameters @@ -56,8 +56,8 @@ jobs: with: workflow: build.yml workflow_conclusion: success - ref: ${{github.event_name == 'schedule' && 'master' || inputs.ref}} - event: ${{github.event_name == 'schedule' && 'schedule' || inputs.pipeline_type}} + ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}} + event: ${{github.event_name == 'workflow_dispatch' && inputs.pipeline_type || 'schedule'}} name: windows-ucrt-${{matrix.arch}}-toolchain - name: Unpack toolchain run: |