Skip to content

Commit 07a700e

Browse files
Use toml get
1 parent 56beb03 commit 07a700e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
# TODO: disable when confirmed working
8-
pull_request:
9-
types: [opened, reopened, synchronize]
107

118
env:
129
UV_VERSION: "0.4.26"
@@ -39,12 +36,12 @@ jobs:
3936
if: ${{ env.sha }}
4037
uses: salsify/action-detect-and-tag-new-version@v2
4138
with:
42-
version-command: uvx hatch version
39+
version-command: uvx --from=toml-cli toml get --toml-path=pyproject.toml project.version
4340

4441
- name: Bump version for dev release
4542
if: "! steps.check-version.outputs.tag"
4643
run: |
47-
VERSION=$(uvx hatch version)
44+
VERSION=$(uvx --from=toml-cli toml get --toml-path=pyproject.toml project.version)
4845
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION.dev.$(date +%s)
4946
5047
- name: Build package

0 commit comments

Comments
 (0)