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