From 0e773ecc5812a066b8c0f049a597e092722f138b Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Tue, 17 Dec 2024 11:45:31 -0600 Subject: [PATCH] Fixed tag-name output --- .github/workflows/release.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 655147d1..900864ee 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,6 +28,7 @@ jobs: outputs: release-kind: ${{ steps.release-kind.outputs.release-kind }} package: ${{ steps.bump-version.outputs.package }} + tag-name: ${{ steps.bump-version.outputs.tag-name }} steps: - uses: actions/checkout@v4 name: Checkout the repository @@ -80,6 +81,7 @@ jobs: major|minor|patch) bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND" echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV + export "TAG_NAME=$(bump-my-version show current_version)" # git push # git push --tags echo "PACKAGE=true" >> $GITHUB_ENV @@ -96,6 +98,7 @@ jobs: esac echo "package=$PACKAGE" >> $GITHUB_OUTPUT + echo "tag-name=$TAG_NAME" >> $GITHUB_OUTPUT - name: Package and upload artifacts if: ${{ env.PACKAGE == 'true' }} @@ -125,12 +128,12 @@ jobs: - name: show env run: | - echo ${{ env.TAG_NAME }} + echo ${{ needs.version.outputs.tag-name }} # - name: Create a GitHub release # uses: softprops/action-gh-release@v1 # with: # files: dist/* -# tag_name: "${{ env.TAG_NAME }}" +# tag_name: "${{ needs.version.outputs.tag-name }}" # body_path: release-notes.md # # - name: Upload package to PyPI