From c916dcde896cc48372ca250fa936715c1fb321cd Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 4 Sep 2024 17:52:51 +0100 Subject: [PATCH] Move if from step if condition to bash syntax --- .github/actions/get-version/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/get-version/action.yml b/.github/actions/get-version/action.yml index d55472bad..c5412238f 100644 --- a/.github/actions/get-version/action.yml +++ b/.github/actions/get-version/action.yml @@ -5,6 +5,8 @@ runs: using: "composite" steps: - - if: ${{ github.ref_name != "master" }} - run: echo "SYNERGY_VERSION=${{ github.event.inputs.version || github.ref_name }}" >> $GITHUB_ENV + - run: | + if [[ "${{ github.ref_name }}" != "master" ]]; then + echo "SYNERGY_VERSION=${{ github.event.inputs.version || github.ref_name }}" >> $GITHUB_ENV + fi shell: bash