-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See https://github.com/whatwg/spec-factory for details.
- Loading branch information
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"src_file": "infra.bs", | ||
"type": "bikeshed", | ||
"params": { | ||
"force": 1, | ||
"md-status": "LS-PR", | ||
"md-Text-Macro": "PR-NUMBER {{ pull_request.number }}" | ||
} | ||
"src_file": "infra.bs", | ||
"type": "bikeshed", | ||
"params": { | ||
"force": 1, | ||
"md-status": "LS-PR", | ||
"md-Text-Macro": "PR-NUMBER {{ pull_request.number }}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,21 @@ SHELL=/bin/bash -o pipefail | |
.PHONY: local remote deploy review | ||
|
||
remote: infra.bs | ||
curl https://api.csswg.org/bikeshed/ -f -F [email protected] > infra.html -F md-Text-Macro="SNAPSHOT-LINK LOCAL COPY" | ||
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \ | ||
--output infra.html \ | ||
--write-out "%{http_code}" \ | ||
--header "Accept: text/plain, text/html" \ | ||
-F die-on=warning \ | ||
-F md-Text-Macro="COMMIT-SHA LOCAL COPY" \ | ||
-F [email protected]) && \ | ||
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \ | ||
echo ""; cat infra.html; echo ""; \ | ||
rm -f infra.html; \ | ||
exit 22 \ | ||
); | ||
|
||
local: infra.bs | ||
bikeshed spec infra.bs infra.html --md-Text-Macro="SNAPSHOT-LINK LOCAL COPY" | ||
bikeshed spec infra.bs infra.html --md-Text-Macro="COMMIT-SHA LOCAL COPY" | ||
|
||
deploy: infra.bs | ||
curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh | ||
|