Skip to content

Commit fe321bd

Browse files
committed
Move up workflowsInput initialisation
1 parent afbb718 commit fe321bd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pr-checks/sync.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ def writeHeader(checkStream):
6565
with open(file, 'r') as checkStream:
6666
checkSpecification = yaml.load(checkStream)
6767
matrix = []
68+
69+
workflowInputs = {}
70+
if 'inputs' in checkSpecification:
71+
workflowInputs = checkSpecification['inputs']
72+
6873
excludedOsesAndVersions = checkSpecification.get('excludeOsAndVersionCombination', [])
6974
for version in checkSpecification.get('versions', defaultTestVersions):
7075
if version == "latest":
@@ -174,10 +179,6 @@ def writeHeader(checkStream):
174179
'checkName': checkName
175180
})
176181

177-
workflowInputs = {}
178-
if 'inputs' in checkSpecification:
179-
workflowInputs = checkSpecification['inputs']
180-
181182
raw_file = this_dir.parent / ".github" / "workflows" / f"__{checkName}.yml.raw"
182183
with open(raw_file, 'w') as output_stream:
183184
writeHeader(output_stream)

0 commit comments

Comments
 (0)