Skip to content

Commit 246a39a

Browse files
committed
Make the spec draft updater remove completed specs and work around nulls
And update dist, which was overlooked. These changes together will allow the workflow to send PRs that pass the CI.
1 parent 09e182f commit 246a39a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/update_draft_features_weekly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
node-version-file: .node-version
1717
cache: npm
1818
- run: npm ci
19+
- run: rm features/draft/spec/*.yml features/draft/spec/*.dist
1920
- run: npm run update-drafts
21+
- run: npm run dist
2022
- name: Commit changes
2123
run: |
2224
git config --local user.email "[email protected]"

scripts/update-drafts.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ async function main() {
7070
continue;
7171
}
7272

73+
// A few null values remain in BCD. They are being removed in
74+
// https://github.com/mdn/browser-compat-data/pull/23774.
75+
// TODO: Remove this workaround when BCD is free or true/null values.
76+
if (feature.id.startsWith('html.manifest.')) {
77+
continue;
78+
}
79+
7380
const spec_url = feature.data.__compat.spec_url;
7481
if (!spec_url) {
7582
continue;

0 commit comments

Comments
 (0)