1
0
mirror of synced 2026-01-08 03:01:54 -05:00

Merge pull request #31238 from github/repo-sync

Repo sync
This commit is contained in:
docs-bot
2024-01-23 11:27:51 -08:00
committed by GitHub
2 changed files with 2 additions and 6 deletions

View File

@@ -36,7 +36,6 @@ jobs:
token: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
- name: Link check all pages (internal links only)
id: all_links
env:
LEVEL: 'critical'
ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
@@ -52,12 +51,8 @@ jobs:
run: node src/links/scripts/rendered-content-link-checker.js
- name: Upload artifact(s)
if: ${{ always() }}
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
with:
name: artifacts
path: ./artifacts
- name: Fail if either check has broken links in its level
if: ${{ steps.changed_links.outputs.has_flaws_at_level == 'true' || steps.all_links.outputs.has_flaws_at_level == 'true' }}
run: |
exit 1

View File

@@ -332,6 +332,7 @@ async function main(core, octokit, uploadArtifact, opts = {}) {
)
}
}
process.exit(1)
} else {
// It might be that the PR got a comment about >0 flaws before,
// and now it can update that comment to say all is well again.