Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand committed Sep 20, 2024
1 parent c214940 commit 3d49d35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-test-matrices/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ runs:
id: load-host-matrix
shell: bash
run: |
CONDITION=$(( ${{ inputs.containers }} == "true" ? ".IMAGE?" : ".IMAGE == null" ))
CONDITION=$([ ${{ inputs.containers }} == "true" ] ? ".IMAGE?" : ".IMAGE == null" )
echo 'Select runners (VMs) to run tests on'
if [[ "${{ github.event_name }}" == "pull_request" || "${{ github.event_name }}" == "push" || "${{ inputs.run-full-matrix }}" == "false" ]]; then
echo 'Pick runners marked as '"run": "always"' only - on PR, push or manually triggered job which does not require full matrix'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
with:
language-name: node
# Run full test matrix if job started by cron or it was explictly specified by a person who triggered the workflow
run-full-matrix: ${{ github.event.inputs.full-matrix == 'true' || github.event_name == 'schedule' || 'false' }}
run-full-matrix: ${{ github.event.inputs.full-matrix == 'true' || github.event_name == 'schedule' }}
containers: false

test-node:
Expand Down Expand Up @@ -264,7 +264,7 @@ jobs:
runs-on: ubuntu-latest
# using `needs` instead of `if` to ensure that same condition applied
needs: [get-matrices]
if: ${{ github.event.inputs.full-matrix == 'true' || github.event_name == 'schedule' || 'false' }}
if: ${{ github.event.inputs.full-matrix == 'true' || github.event_name == 'schedule' }}
outputs:
engine-matrix-output: ${{ steps.get-matrices.outputs.engine-matrix-output }}
host-matrix-output: ${{ steps.get-matrices.outputs.host-matrix-output }}
Expand Down

0 comments on commit 3d49d35

Please sign in to comment.