Skip to content

Commit 5d6a049

Browse files
authored
Fix release workflow again (#60)
1 parent 35be716 commit 5d6a049

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/_release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ jobs:
6969
id: check-version
7070
shell: bash
7171
run: |
72-
echo pkg-name="$(hatch project metadata | jq -r .name)" >> $GITHUB_OUTPUT
73-
echo version="$(hatch version)" >> $GITHUB_OUTPUT
72+
set -eu
73+
echo pkg-name="$(uvx hatch project metadata | jq -r .name)" >> $GITHUB_OUTPUT
74+
echo version="$(uvx hatch version)" >> $GITHUB_OUTPUT
7475
7576
test-pypi-publish:
7677
needs:
@@ -112,13 +113,6 @@ jobs:
112113
with:
113114
python-version: ${{ env.PYTHON_VERSION }}
114115

115-
- name: Check Version
116-
id: check-version
117-
shell: bash
118-
run: |
119-
echo pkg-name="$(uvx hatch project metadata | jq -r .name)" >> $GITHUB_OUTPUT
120-
echo version="$(uvx hatch version)" >> $GITHUB_OUTPUT
121-
122116
- name: Import published package
123117
shell: bash
124118
env:

.github/workflows/_test_release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ jobs:
5353
name: test-dist
5454
path: ${{ inputs.working-directory }}/dist/
5555

56+
- name: Check Version
57+
id: check-version
58+
shell: bash
59+
run: |
60+
set -eu
61+
echo pkg-name="$(uvx hatch project metadata | jq -r .name)" >> $GITHUB_OUTPUT
62+
echo version="$(uvx hatch version)" >> $GITHUB_OUTPUT
63+
5664
publish:
5765
needs:
5866
- build

0 commit comments

Comments
 (0)