Skip to content

Commit c3cbbd3

Browse files
committed
ci: skip removed 0.3 drafts
1 parent 97e1422 commit c3cbbd3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/scripts/validate-proposals.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ for (const { proposal, version } of toValidate) {
7171
try {
7272
console.log(` Path: ${witDir}`);
7373

74+
// Skip when the wit directory no longer exists. A PR that removes a wit
75+
// tree (e.g. dropping the 0.3 drafts on this branch) still surfaces its
76+
// deleted files in the changed-file list, but there is nothing to validate.
77+
if (!fs.existsSync(witDir)) {
78+
console.log(` Skipping ${proposal} v${version}: ${witDir} no longer exists (removed)`);
79+
continue;
80+
}
81+
7482
// Check wit-deps lock if deps.toml exists
7583
if (fs.existsSync(`${witDir}/deps.toml`)) {
7684
console.log(' Checking dependencies...');

0 commit comments

Comments
 (0)