Skip to content

Commit bf039a5

Browse files
committed
ci(release): fix
1 parent 83c1a54 commit bf039a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ jobs:
2626
FLIT_USERNAME: __token__
2727
FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2828
run:
29-
echo "{env.RELEASE_NOTE_VERSION}={$(git describe --tags)}" >> "$GITHUB_ENV"
29+
echo "{env.RELEASE_VERSION}={$(git describe --tags --abbrev=0)}" >> "$GITHUB_ENV"
3030
# pip install flit
3131
# flit publish
3232
- name: Create Release Notes
3333
run:
34-
echo "Changelog for release ${RELEASE_NOTE_VERSION}:"
35-
cz changelog --file-name ${RELEASE_NOTES_BODY_FILE} ${RELEASE_NOTE_VERSION}
34+
echo "Changelog for release ${RELEASE_VERSION}:"
35+
cz changelog --file-name ${RELEASE_NOTES_BODY_FILE} ${RELEASE_VERSION}
3636
cat ${RELEASE_NOTES_BODY_FILE}
3737
- name: Create Github Release
3838
uses: softprops/action-gh-release@v1
3939
with:
4040
body_path: ${{ env.RELEASE_NOTES_BODY_FILE }}
41-
tag_name: ${{ env.RELEASE_NOTE_VERSION }}
41+
tag_name: ${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)