File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -168,17 +168,7 @@ jobs:
168168 id : release_meta
169169 run : |
170170 set -euo pipefail
171- VERSION=$(python3 - <<'PY'
172- import pathlib
173- try:
174- import tomllib
175- except ModuleNotFoundError:
176- import tomli as tomllib
177- with pathlib.Path("pyproject.toml").open("rb") as fh:
178- data = tomllib.load(fh)
179- print(data["project"]["version"])
180- PY
181- )
171+ VERSION=$(python3 -c "import pathlib; import tomllib; print(tomllib.load(pathlib.Path('pyproject.toml').open('rb'))['project']['version'])")
182172 CURRENT_RELEASE=$(git rev-list HEAD --grep '^Release ' --max-count=1 || true)
183173 if [[ -z "${CURRENT_RELEASE}" ]]; then
184174 echo "Unable to locate the current release commit (matching '^Release ')" >&2
You can’t perform that action at this time.
0 commit comments