From 02fcb60ad205073092bf64ec0909cd7286005580 Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:56:01 -0500 Subject: [PATCH] fix: work around github's dumb syntax for conditionals --- .github/workflows/hermetic.yml | 2 +- .github/workflows/schedule-durable.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hermetic.yml b/.github/workflows/hermetic.yml index e79a0e19..d704ff41 100644 --- a/.github/workflows/hermetic.yml +++ b/.github/workflows/hermetic.yml @@ -129,7 +129,7 @@ jobs: # For PR and merge group events, run only "fast" tests. # Note it is not possible to override "test_selector" for these types of events. - if [[ ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }} ]]; then + if [[ ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }} == 'true' ]]; then test_selector="fast" fi make TEST_SELECTOR="$test_selector" HERMETIC_CMD=./bin/hermetic-driver hermetic-tests diff --git a/.github/workflows/schedule-durable.yml b/.github/workflows/schedule-durable.yml index 6a52f6e0..3abe17d9 100644 --- a/.github/workflows/schedule-durable.yml +++ b/.github/workflows/schedule-durable.yml @@ -94,8 +94,8 @@ jobs: # For scheduled events, "test_selector" will be null. Run all tests for QA but only "fast" ones for other # envs. test_selector=${{ github.event.inputs.test_selector || '.' }} - if [[ ${{ github.event.inputs.test_selector == null }} ]]; then - if [[ ${{ matrix.network != 'qa' }} ]]; then + if [[ ${{ github.event.inputs.test_selector == null }} == 'true' ]]; then + if [[ ${{ matrix.network != 'qa' }} == 'true' ]]; then test_selector="fast" fi fi