Skip to content

Commit 70b2d41

Browse files
authored
Merge pull request #19 from escendit/18-fix-github-actions-version-prefix
Fix GitHub VERSION prefix
2 parents 95aebdb + deb1322 commit 70b2d41

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ jobs:
3232
dotnet-version: |
3333
9.x
3434
35-
- name: Set Default VERSION
36-
run: echo "VERSION=0.0.0" >> $GITHUB_ENV
35+
- name: Set Default TAG
36+
run: echo "TAG=v0.0.0" >> $GITHUB_ENV
3737

38-
- name: Set VERSION variable from tag
39-
run: echo "VERSION=${{ github.event.release.tag_name}}" >> $GITHUB_ENV
38+
- name: Set TAG variable from tag
39+
run: echo "TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
4040
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
4141

42+
- name: Set VERSION variable
43+
run: echo "VERSION=${TAG#v}" >> $GITHUB_ENV
44+
4245
- name: Read VERSION variable
4346
run: echo "${VERSION}"
4447

0 commit comments

Comments
 (0)