Skip to content

Commit 0e773ec

Browse files
committed
Fixed tag-name output
1 parent 76c31c4 commit 0e773ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
outputs:
2929
release-kind: ${{ steps.release-kind.outputs.release-kind }}
3030
package: ${{ steps.bump-version.outputs.package }}
31+
tag-name: ${{ steps.bump-version.outputs.tag-name }}
3132
steps:
3233
- uses: actions/checkout@v4
3334
name: Checkout the repository
@@ -80,6 +81,7 @@ jobs:
8081
major|minor|patch)
8182
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
8283
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
84+
export "TAG_NAME=$(bump-my-version show current_version)"
8385
# git push
8486
# git push --tags
8587
echo "PACKAGE=true" >> $GITHUB_ENV
@@ -96,6 +98,7 @@ jobs:
9698
esac
9799
98100
echo "package=$PACKAGE" >> $GITHUB_OUTPUT
101+
echo "tag-name=$TAG_NAME" >> $GITHUB_OUTPUT
99102
100103
- name: Package and upload artifacts
101104
if: ${{ env.PACKAGE == 'true' }}
@@ -125,12 +128,12 @@ jobs:
125128

126129
- name: show env
127130
run: |
128-
echo ${{ env.TAG_NAME }}
131+
echo ${{ needs.version.outputs.tag-name }}
129132
# - name: Create a GitHub release
130133
# uses: softprops/action-gh-release@v1
131134
# with:
132135
# files: dist/*
133-
# tag_name: "${{ env.TAG_NAME }}"
136+
# tag_name: "${{ needs.version.outputs.tag-name }}"
134137
# body_path: release-notes.md
135138
#
136139
# - name: Upload package to PyPI

0 commit comments

Comments
 (0)