Skip to content

Commit

Permalink
chore: wire up better errata
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Apr 25, 2024
1 parent d6d51e6 commit 23f2f30
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/auto-publish-errata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node CI

on:
push:
branches:
- main
paths:
- errata.html
pull_request: {}

jobs:
validate-and-publish:
name: Validate and Publish
runs-on: ubuntu-latest # only linux supported at present
steps:
- uses: actions/checkout@v2
- uses: w3c/spec-prod@v2
with:
SOURCE: errata.html
TOOLCHAIN: respec
VALIDATE_LINKS: false
VALIDATE_PUBRULES: false
GH_PAGES_BRANCH: gh-pages
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
W3C_WG_DECISION_URL: "https://lists.w3.org/Archives/Public/public-device-apis/2021May/0008.html"
W3C_NOTIFICATIONS_CC: "${{ secrets.CC }}"
4 changes: 2 additions & 2 deletions errata.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
<script class="removeOnSave">
function removeCommits(commit) {
const { message, hash } = commit;
if (["ef098b1"].includes(hash)) {
if (["ef098b1", "f8b930f"].includes(hash)) {
return false;
}
return !|^Merge pull|^tidy|^editorial|^Editiorial|^edtiorial|^chore|^refactor|^tests?|^docs|^typo|^nit/i.test(message);
return !/^chore|^tidy|^editorial|^Editiorial|^edtiorial|^refactor|^tests?|^docs|^typo|^nit/i.test(message);
}
</script>
<rs-changelog from="REC-2022" filter="removeCommits">
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
testSuiteURI: "https://wpt.live/geolocation-API/",
implementationReportURI: "https://w3c.github.io/geolocation-api/reports/PR_imp_report.html",
xref: "web-platform",
errata: "https://github.com/w3c/geolocation-api/labels/errata",
errata: "https://w3c.github.io/geolocation-api/errata.html",
};
</script>
</head>
Expand Down

0 comments on commit 23f2f30

Please sign in to comment.