Skip to content

Commit 70004ff

Browse files
committed
shift flowvar check to above. fix pr-update to run only on push
Signed-off-by: Jack Luar <[email protected]>
1 parent d7d56a1 commit 70004ff

File tree

4 files changed

+91
-40
lines changed

4 files changed

+91
-40
lines changed

.github/workflows/github-actions-yaml-test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
docs-test-job:
99
name: 'Tests for variables.yaml'
10-
if: "github.event_name == 'pull_request' || github.event_name == 'push'"
10+
if: github.event_name == 'pull_request' || github.event_name == 'push'
1111
runs-on: ubuntu-latest
1212
container:
1313
image: openroad/ubuntu-cpp20
@@ -19,13 +19,17 @@ jobs:
1919
- name: Run generate-variables-docs.py
2020
run: |
2121
python3 flow/scripts/generate-variables-docs.py
22+
- name: Check if FlowVariables.md is up to date
23+
run: |
24+
git diff --exit-code docs/user/FlowVariables.md
2225
- name: Run yamlfix check
2326
run: |
27+
pip install yamlfix==1.17.0
2428
yamlfix -c yamlfix.toml flow/scripts/variables.yaml --check
2529
2630
docs-pr-update:
2731
name: 'Create PR to update ORFS FlowVariables.md and variables.yaml'
28-
if: "github.event_name == 'pull_request' || github.event_name == 'push'"
32+
if: github.event_name == 'push'
2933
needs:
3034
- docs-test-job
3135
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)