We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97beb4b commit 7b9d5aeCopy full SHA for 7b9d5ae
1 file changed
.github/workflows/release.yml
@@ -34,7 +34,12 @@ jobs:
34
name: packages
35
path: ${{ env.OUTPUT_PATH }}
36
37
- - run: echo "tag=${GITHUB_REF##*/v}" >> $GITHUB_ENV
+ - name: Set tag env var (windows)
38
+ if: runner.os == 'Windows'
39
+ run: echo ("tag=" + ($env:GITHUB_REF -replace '.*v')) >> $env:GITHUB_ENV
40
+ - name: Set tag env var (non-windows)
41
+ if: runner.os != 'Windows'
42
+ run: echo "tag=${GITHUB_REF##*/v}" >> $GITHUB_ENV
43
44
- name: Create Release
45
id: create_release
@@ -48,7 +53,7 @@ jobs:
48
53
prerelease: false
49
54
body_path: ${{ env.OUTPUT_PATH }}/changelog.md
50
55
- run: echo ${{ steps.create_release.outputs.id }} >> release.txt
51
- - name: Upload
56
+ - name: Upload release_id
52
57
uses: actions/upload-artifact@v2
58
with:
59
name: release_id
0 commit comments