Skip to content

Commit d7b7184

Browse files
committed
Improve clarity in workflow steps and fix indentation issues in versioning logic
1 parent c59eac3 commit d7b7184

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish-on-push.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
python-version: "3.11"
2323

24-
- name: Install build tools
24+
- name: Install all build tools
2525
run: |
2626
python -m pip install --upgrade pip
2727
python -m pip install build twine
@@ -41,8 +41,9 @@ jobs:
4141
if not re.search(r'^version\s*=\s*"([^"]+)"', content, flags=re.MULTILINE):
4242
raise SystemExit("Could not find [project].version in pyproject.toml")
4343
44+
run_number = int(os.environ["RUN_NUMBER"])
4445
if run_number < 1:
45-
raise SystemExit("RUN_NUMBER must be >= 1")
46+
raise SystemExit("RUN_NUMBER must be >= 1")
4647
4748
# Base-100 carry strategy:
4849
# 1..99 -> 0.0.1 .. 0.0.99
@@ -55,7 +56,7 @@ jobs:
5556
5657
updated = re.sub(
5758
r'^version\s*=\s*"[^"]+"',
58-
f'version = "{version}"',
59+
f'version = "{version}"',
5960
content,
6061
count=1,
6162
flags=re.MULTILINE,

0 commit comments

Comments
 (0)