Skip to content

Commit 990feb5

Browse files
committed
Catch gotcha in PR check workflow generator
1 parent ac3fca3 commit 990feb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pr-checks/sync.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ def writeHeader(checkStream):
6565
matrix = []
6666
excludedOsesAndVersions = checkSpecification.get('excludeOsAndVersionCombination', [])
6767
for version in checkSpecification.get('versions', defaultTestVersions):
68-
runnerImages = ["ubuntu-latest", "macos-latest", "windows-latest"]
68+
if version == "latest":
69+
raise ValueError('Did not recognize "version: latest". Did you mean "version: linked"?')
70+
71+
runnerImages = ["ubuntu-latest", "macos-latest", "windows-latest"]
6972
operatingSystems = checkSpecification.get('operatingSystems', ["ubuntu", "macos", "windows"])
7073

7174
for operatingSystem in operatingSystems:

0 commit comments

Comments
 (0)