We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6e2764 commit f36980dCopy full SHA for f36980d
1 file changed
.github/workflows/publish-pypi.yml
@@ -30,7 +30,7 @@ jobs:
30
import os
31
import pathlib
32
import tomllib
33
- version = tomllib.loads(pathlib.Path("pyproject.toml").read_bytes())["project"][
+ version = tomllib.loads(pathlib.Path("pyproject.toml").read_text())["project"][
34
"version"
35
]
36
print(version)
@@ -50,7 +50,7 @@ jobs:
50
tag = tag[1:]
51
# `steps.version.outputs.version` is available via GHA expressions only, so re-read here.
52
import pathlib, tomllib
53
- version = tomllib.loads(pathlib.Path("pyproject.toml").read_bytes())["project"]["version"]
+ version = tomllib.loads(pathlib.Path("pyproject.toml").read_text())["project"]["version"]
54
if tag != version:
55
raise SystemExit(f"Release tag ({tag}) does not match pyproject.toml version ({version})")
56
print("Tag matches version:", tag)
0 commit comments