Move if from step if condition to bash syntax
This commit is contained in:
parent
7355ae6595
commit
c916dcde89
1 changed files with 4 additions and 2 deletions
6
.github/actions/get-version/action.yml
vendored
6
.github/actions/get-version/action.yml
vendored
|
|
@ -5,6 +5,8 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- if: ${{ github.ref_name != "master" }}
|
- run: |
|
||||||
run: echo "SYNERGY_VERSION=${{ github.event.inputs.version || github.ref_name }}" >> $GITHUB_ENV
|
if [[ "${{ github.ref_name }}" != "master" ]]; then
|
||||||
|
echo "SYNERGY_VERSION=${{ github.event.inputs.version || github.ref_name }}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue