Skip to content

Commit 23230da

Browse files
committed
Use step output to pass version number
1 parent ee79795 commit 23230da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/draft-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ jobs:
2222
cache-dependency-path: poetry.lock
2323

2424
- name: Build project
25+
id: build
2526
run: |
2627
poetry build
27-
echo "version=$(poetry version --short)" >> "$GITHUB_ENV"
28+
echo "version=$(poetry version --short)" >> "$GITHUB_OUTPUT"
2829
2930
- name: Release
3031
uses: softprops/action-gh-release@v2
3132
with:
3233
files: dist/*
33-
tag_name: ${{ env.version }}
34+
tag_name: ${{ steps.build.outputs.version }}
3435
draft: true

0 commit comments

Comments
 (0)