Move if from step if condition to bash syntax
This commit is contained in:
6
.github/actions/get-version/action.yml
vendored
6
.github/actions/get-version/action.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user