1 parent c59eac3 commit d7b7184Copy full SHA for d7b7184
1 file changed
.github/workflows/publish-on-push.yml
@@ -21,7 +21,7 @@ jobs:
21
with:
22
python-version: "3.11"
23
24
- - name: Install build tools
+ - name: Install all build tools
25
run: |
26
python -m pip install --upgrade pip
27
python -m pip install build twine
@@ -41,8 +41,9 @@ jobs:
41
if not re.search(r'^version\s*=\s*"([^"]+)"', content, flags=re.MULTILINE):
42
raise SystemExit("Could not find [project].version in pyproject.toml")
43
44
+ run_number = int(os.environ["RUN_NUMBER"])
45
if run_number < 1:
- raise SystemExit("RUN_NUMBER must be >= 1")
46
+ raise SystemExit("RUN_NUMBER must be >= 1")
47
48
# Base-100 carry strategy:
49
# 1..99 -> 0.0.1 .. 0.0.99
@@ -55,7 +56,7 @@ jobs:
55
56
57
updated = re.sub(
58
r'^version\s*=\s*"[^"]+"',
- f'version = "{version}"',
59
+ f'version = "{version}"',
60
content,
61
count=1,
62
flags=re.MULTILINE,
0 commit comments