Skip to content

Commit 8ee561b

Browse files
authored
Extract version from pyproject.toml (#65)
1 parent ca78f33 commit 8ee561b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release-drafter.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@ jobs:
99
update_release_draft:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: 3.10
17+
- name: Install Poetry
18+
run: curl -sSL https://install.python-poetry.org | python
19+
- name: Get version from pyproject.toml
20+
run: echo "VERSION=$(poetry version -s)" >> $GITHUB_ENV
1221
- uses: release-drafter/release-drafter@v5
1322
with:
14-
name: next
15-
tag: next
16-
version: next
23+
name: ${{ env.VERSION }}
24+
tag: ${{ env.VERSION }}
25+
version: ${{ env.VERSION }}
1726
env:
1827
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)