Skip to content

Commit

Permalink
fix: work around github's dumb syntax for conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Nov 7, 2023
1 parent ba8ef8f commit 02fcb60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hermetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/schedule-durable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02fcb60

Please sign in to comment.