File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ jobs:
2121 run : |
2222 TAG="${GITHUB_REF_NAME#v}"
2323 CARGO_VERSION=$(python3 - <<'PY'
24- from pathlib import Path
25- for line in Path("Cargo.toml").read_text().splitlines() :
26- if line.startswith("version = ") :
27- print(line.split('"')[1])
28- break
29- PY
30- )
24+ from pathlib import Path
25+ for line in Path("Cargo.toml").read_text().splitlines():
26+ if line.startswith("version = "):
27+ print(line.split('"')[1])
28+ break
29+ PY
30+ )
3131 UI_VERSION=$(python3 - <<'PY'
32- import json
33- from pathlib import Path
34- print(json.loads(Path("web/void-control-ux/package.json").read_text())["version"])
35- PY
36- )
32+ import json
33+ from pathlib import Path
34+ print(json.loads(Path("web/void-control-ux/package.json").read_text())["version"])
35+ PY
36+ )
3737 test "${TAG}" = "${CARGO_VERSION}"
3838 test "${TAG}" = "${UI_VERSION}"
3939 echo "version=${TAG}" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments