chore(ci): add missing quote marks that may have caused some workflow fails (#4963)

This commit is contained in:
Radosław Szpiech 2023-10-03 11:44:12 +02:00 committed by GitHub
parent 8b249e1917
commit 73ae00f12c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -187,11 +187,11 @@ jobs:
- name: Check branch - name: Check branch
id: check-test id: check-test
run: | run: |
if [ ${{ github.base_ref }} == 'develop' ]; then if [ '${{ github.base_ref }}' == 'develop' ]; then
echo "e2e-needed=true" >> $GITHUB_OUTPUT echo "e2e-needed=true" >> $GITHUB_OUTPUT
elif [ ${{ github.base_ref }} == 'main' ]; then elif [ '${{ github.base_ref }}' == 'main' ]; then
echo "e2e-needed=true" >> $GITHUB_OUTPUT echo "e2e-needed=true" >> $GITHUB_OUTPUT
elif [[ ${{ github.event_name }} == 'push' && ${{ contains(github.ref_name, 'release/') }} ]]; then elif [[ '${{ github.event_name }}' == 'push' && ${{ contains(github.ref_name, 'release/') }} ]]; then
echo "e2e-needed=true" >> $GITHUB_OUTPUT echo "e2e-needed=true" >> $GITHUB_OUTPUT
else else
echo "e2e-needed=false" >> $GITHUB_OUTPUT echo "e2e-needed=false" >> $GITHUB_OUTPUT

View File

@ -21,11 +21,11 @@ jobs:
- name: Check branch - name: Check branch
id: step id: step
run: | run: |
if [ ${{ github.base_ref }} == 'main' ]; then if [ '${{ github.base_ref }}' == 'main' ]; then
echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT 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 echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT
elif [[ ${{ github.event_name }} == 'push' && ${{ contains(github.ref_name, 'release/mainnet') }} ]]; then elif [[ '${{ github.event_name }}' == 'push' && ${{ contains(github.ref_name, 'release/mainnet') }} ]]; then
echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT
else else
echo "runner=self-hosted-runner" >> $GITHUB_OUTPUT echo "runner=self-hosted-runner" >> $GITHUB_OUTPUT