Skip to content

Commit 4043eee

Browse files
committed
minor ci improvements
1 parent 78323a9 commit 4043eee

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/pre-genesis-transactions-checks.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ jobs:
5555
- name: Install dependencies
5656
run: poetry install --no-interaction
5757
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
58-
- run: |
58+
- name: Check PR submission correctness
59+
run: |
5960
source .venv/bin/activate
6061
poetry run python scripts/validate-pr.py
6162
env:
@@ -96,7 +97,8 @@ jobs:
9697
- name: Install dependencies
9798
run: poetry install --no-interaction
9899
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
99-
- run: |
100+
- name: Check PR submission correctness
101+
run: |
100102
source .venv/bin/activate
101103
poetry run python scripts/validate-merge.py
102104
@@ -135,7 +137,8 @@ jobs:
135137
- name: Install dependencies
136138
run: poetry install --no-interaction
137139
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
138-
- run: |
140+
- name: Rebuild README.md
141+
run: |
139142
source .venv/bin/activate
140143
poetry run python scripts/rebuild.py
141144
- uses: stefanzweifel/git-auto-commit-action@v5

scripts/validate-pr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def read_env():
1414
can_apply_for_bonds = os.environ.get('CAN_ADD_BONDS', True).lower() in ('true', '1', 't')
1515
can_apply_for_accounts = os.environ.get('CAN_ADD_ACCOUNTS', True).lower() in ('true', '1', 't')
1616

17-
print("Can add validators: {}", can_apply_for_validators)
18-
print("Can add bonds: {}", can_apply_for_bonds)
19-
print("Can add accounts: {}", can_apply_for_accounts)
17+
print("Can add validators: {}".format(can_apply_for_validators))
18+
print("Can add bonds: {}".format(can_apply_for_bonds))
19+
print("Can add accounts: {}".format(can_apply_for_accounts))
2020

2121
return can_apply_for_validators, can_apply_for_bonds, can_apply_for_accounts
2222

0 commit comments

Comments
 (0)