Move if from step if condition to bash syntax

This commit is contained in:
Nick Bolton
2024-09-04 17:52:51 +01:00
parent 7355ae6595
commit c916dcde89

View File

@ -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