Skip to content

Commit 447b622

Browse files
committed
fix(workflows): Undefined on
To understand the modifications, please refer to the gitdiff below. Signed-off-by: ioit-aaa <[email protected]>
1 parent 1ce9fdf commit 447b622

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/RELEASE.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
18
jobs:
29
changelog:
310
name: Generate changelog
@@ -18,18 +25,15 @@ jobs:
1825
args: -vv --latest --strip header
1926
env:
2027
OUTPUT: CHANGES.md
21-
GITHUB_REPO: ${{ github.repository }}
2228

23-
# use release body in the same job
2429
- name: Upload the binary releases
2530
uses: svenstaro/upload-release-action@v2
2631
with:
2732
file: binary_release.zip
2833
repo_token: ${{ secrets.GITHUB_TOKEN }}
29-
tag: ${{ github.ref }}
34+
tag: ${{ github.ref_name }}
3035
body: ${{ steps.git-cliff.outputs.content }}
3136

32-
# use release body in another job
3337
upload:
3438
name: Upload the release
3539
needs: changelog
@@ -39,5 +43,5 @@ jobs:
3943
uses: svenstaro/upload-release-action@v2
4044
with:
4145
repo_token: ${{ secrets.GITHUB_TOKEN }}
42-
tag: ${{ github.ref }}
46+
tag: ${{ github.ref_name }}
4347
body: ${{ needs.changelog.outputs.release_body }}

0 commit comments

Comments
 (0)