Skip to content

Commit f36980d

Browse files
committed
minor fix on workflow
1 parent a6e2764 commit f36980d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
import os
3131
import pathlib
3232
import tomllib
33-
version = tomllib.loads(pathlib.Path("pyproject.toml").read_bytes())["project"][
33+
version = tomllib.loads(pathlib.Path("pyproject.toml").read_text())["project"][
3434
"version"
3535
]
3636
print(version)
@@ -50,7 +50,7 @@ jobs:
5050
tag = tag[1:]
5151
# `steps.version.outputs.version` is available via GHA expressions only, so re-read here.
5252
import pathlib, tomllib
53-
version = tomllib.loads(pathlib.Path("pyproject.toml").read_bytes())["project"]["version"]
53+
version = tomllib.loads(pathlib.Path("pyproject.toml").read_text())["project"]["version"]
5454
if tag != version:
5555
raise SystemExit(f"Release tag ({tag}) does not match pyproject.toml version ({version})")
5656
print("Tag matches version:", tag)

0 commit comments

Comments
 (0)