We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95aebdb + deb1322 commit 70b2d41Copy full SHA for 70b2d41
1 file changed
.github/workflows/build.yml
@@ -32,13 +32,16 @@ jobs:
32
dotnet-version: |
33
9.x
34
35
- - name: Set Default VERSION
36
- run: echo "VERSION=0.0.0" >> $GITHUB_ENV
+ - name: Set Default TAG
+ run: echo "TAG=v0.0.0" >> $GITHUB_ENV
37
38
- - name: Set VERSION variable from tag
39
- run: echo "VERSION=${{ github.event.release.tag_name}}" >> $GITHUB_ENV
+ - name: Set TAG variable from tag
+ run: echo "TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
40
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
41
42
+ - name: Set VERSION variable
43
+ run: echo "VERSION=${TAG#v}" >> $GITHUB_ENV
44
+
45
- name: Read VERSION variable
46
run: echo "${VERSION}"
47
0 commit comments