Skip to content

Commit c59eac3

Browse files
committed
Fix indentation and remove unnecessary variable assignment in versioning step
1 parent 6ca0c60 commit c59eac3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip
2727
python -m pip install build twine
28-
29-
- name: Set semantic version for this push
28+
29+
- name: Set semantic version for this push
3030
env:
3131
RUN_NUMBER: ${{ github.run_number }}
3232
run: |
@@ -41,7 +41,6 @@ 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"])
4544
if run_number < 1:
4645
raise SystemExit("RUN_NUMBER must be >= 1")
4746

0 commit comments

Comments
 (0)