Use ephemeral PAT for linkcheck
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
ccce1437bc
commit
e37b9440ed
|
|
@ -20,6 +20,7 @@ jobs:
|
|||
MDBOOK_TOC_VERSION: 0.9.0
|
||||
DEPLOY_DIR: book/html
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -40,6 +40,9 @@ exclude = [
|
|||
cache-timeout = 86400
|
||||
warning-policy = "error"
|
||||
|
||||
[output.linkcheck.http-headers]
|
||||
'github\.com' = ["Accept: application/vnd.github+json", "Authorization: Bearer $GITHUB_TOKEN"]
|
||||
|
||||
[output.html.redirect]
|
||||
"/compiletest.html" = "tests/compiletest.html"
|
||||
"/diagnostics/sessiondiagnostic.html" = "diagnostics/diagnostic-structs.html"
|
||||
|
|
|
|||
Loading…
Reference in New Issue