Skip to content

Commit ab28639

Browse files
committed
build(ci): fix tag name
1 parent c33e53e commit ab28639

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v3
15+
- name: Get the version
16+
id: get_version
17+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1518
- name: Create release
1619
id: create_release
1720
uses: actions/create-release@v1
@@ -20,7 +23,7 @@ jobs:
2023
with:
2124
tag_name: ${{ github.ref }}
2225
release_name: pytorch-optimizer ${{ github.ref }}
23-
body_path: docs/changelog/${{ github.ref }}.md
26+
body_path: docs/changelog/${{ steps.get_version.outputs.VERSION }}.md
2427
draft: false
2528
prerelease: false
2629
deploy:

0 commit comments

Comments
 (0)