Skip to content

Commit 4570da7

Browse files
authored
fix(ci): correct python heredoc indentation (#242)
1 parent d21f90d commit 4570da7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)