We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 891d6b5 commit 0297f38Copy full SHA for 0297f38
.github/workflows/build-linux.yml
@@ -25,9 +25,10 @@ jobs:
25
steps:
26
- name: set version by tag name (as alternative to above)
27
run: |
28
- echo 'VERSION=' ( ( ${{ startsWith(github.ref, 'refs/tags') }} && $GITHUB_REF_NAME ) || \
29
- ( ${{ startsWith(github.ref_name, 'v1.3.0') }} && $GITHUB_REF_NAME ) || \
30
- ( 'v1.3.0-' ${GITHUB_SHA:0:8} ) ) >> $GITHUB_ENV
+ echo 'VERSION=' >> $GITHUB_ENV
+ ( ( ${{ startsWith(github.ref, 'refs/tags') }} && echo $GITHUB_REF_NAME ) || \
+ ( ${{ startsWith(github.ref_name, 'v1.3.0') }} && echo $GITHUB_REF_NAME ) || \
31
+ ( echo 'v1.3.0-' ${GITHUB_SHA:0:8} ) ) >> $GITHUB_ENV
32
# if: ${{ ... }}
33
- name: dependencies
34
0 commit comments