We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d21f90d commit 4570da7Copy full SHA for 4570da7
1 file changed
.github/workflows/publish.yml
@@ -168,17 +168,7 @@ jobs:
168
id: release_meta
169
run: |
170
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
- )
+ VERSION=$(python3 -c "import pathlib; import tomllib; print(tomllib.load(pathlib.Path('pyproject.toml').open('rb'))['project']['version'])")
182
CURRENT_RELEASE=$(git rev-list HEAD --grep '^Release ' --max-count=1 || true)
183
if [[ -z "${CURRENT_RELEASE}" ]]; then
184
echo "Unable to locate the current release commit (matching '^Release ')" >&2
0 commit comments