diff --git a/.github/workflows/create-test-matrices/action.yml b/.github/workflows/create-test-matrices/action.yml index 9765b39093..626700bcb4 100644 --- a/.github/workflows/create-test-matrices/action.yml +++ b/.github/workflows/create-test-matrices/action.yml @@ -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' diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index cd764a9cae..e398519daf 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -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: @@ -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 }}