Skip to content

Commit ba21951

Browse files
committed
Adjust checks and add two intentional failures
1 parent 92a7e7d commit ba21951

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/verify.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,22 @@ jobs:
103103
var failedChecks = 0
104104
for (const [key, value] of Object.entries(toolVersions)) {
105105
if (!Object.hasOwn(outputVersions, key + "-version")) {
106-
console.error("Missing " + key + "-version value")
106+
console.error("Missing '" + key + "-version' in outputs")
107107
failedChecks++
108108
}
109109
if (outputVersions[key + "-version"] !== value) {
110110
console.error("Mismatched versions for " + key)
111+
failedChecks++
111112
}
112113
}
114+
if (!Object.hasOwn(outputVersions, "missing-version")) {
115+
console.error("Missing 'missing-version' in outputs")
116+
failedChecks++
117+
}
118+
if (outputVersions["python-version"] !== "4.0") {
119+
console.error("Mismatched versions for python")
120+
failedChecks++
121+
}
113122
if (failedChecks > 0) {
114123
core.setFailed("Verification failed")
115124
}

0 commit comments

Comments
 (0)