From 6945514b4921cf1cf66dd7e646ec0eafc0c430b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szpiech?= Date: Tue, 3 Oct 2023 13:57:17 +0200 Subject: [PATCH] chore(ci): quotes and double brackets change (#4965) --- .github/workflows/ci-cd-trigger.yml | 6 +++--- .github/workflows/cypress-run.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cd-trigger.yml b/.github/workflows/ci-cd-trigger.yml index 3f6f6ea08..f938a4aab 100644 --- a/.github/workflows/ci-cd-trigger.yml +++ b/.github/workflows/ci-cd-trigger.yml @@ -187,11 +187,11 @@ jobs: - name: Check branch id: check-test run: | - if [ '${{ github.base_ref }}' == 'develop' ]; then + if [[ "${{ github.base_ref }}" == "develop" ]]; then echo "e2e-needed=true" >> $GITHUB_OUTPUT - elif [ '${{ github.base_ref }}' == 'main' ]; then + elif [[ "${{ github.base_ref }}" == "main" ]]; then echo "e2e-needed=true" >> $GITHUB_OUTPUT - elif [[ '${{ github.event_name }}' == 'push' && ${{ contains(github.ref_name, 'release/') }} ]]; then + elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref_name }}" == *"release/"* ]]; then echo "e2e-needed=true" >> $GITHUB_OUTPUT else echo "e2e-needed=false" >> $GITHUB_OUTPUT diff --git a/.github/workflows/cypress-run.yml b/.github/workflows/cypress-run.yml index 349b36280..fe41f1c89 100644 --- a/.github/workflows/cypress-run.yml +++ b/.github/workflows/cypress-run.yml @@ -21,11 +21,11 @@ jobs: - name: Check branch id: step run: | - if [ '${{ github.base_ref }}' == 'main' ]; then + if [[ "${{ github.base_ref }}" == "main" ]]; then echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT - elif [[ '${{ github.base_ref }}' == 'develop' && '${{ github.ref_name }}' == 'main' ]]; then + elif [[ "${{ github.base_ref }}" == "develop" && "${{ github.ref_name }}" == "main" ]]; then echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT - elif [[ '${{ github.event_name }}' == 'push' && ${{ contains(github.ref_name, 'release/mainnet') }} ]]; then + elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref_name }}" == *"release/mainnet"* ]]; then echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT else echo "runner=self-hosted-runner" >> $GITHUB_OUTPUT