Skip to content

Commit b928025

Browse files
Add timeout to broken links checks in website workflow (#1150)
## Description unbroken checks are running for long time, so added a time and continue on error if timeout happens. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1150)
1 parent 133ea7d commit b928025

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/template-buildwebsite.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,28 @@ jobs:
4141
run: ${{github.workspace}}/.github/scripts/CheckUnbrokenExclusions.ps1
4242

4343
- name: Check for Broken Links (Docs)
44+
id: broken-links-docs
45+
timeout-minutes: 15
46+
continue-on-error: true
4447
run: npx unbroken --parse-ids
4548
working-directory: ./docs
4649

50+
- name: Warn if Broken Links (Docs) timed out
51+
if: steps.broken-links-docs.outcome == 'failure' || steps.broken-links-docs.outcome == 'cancelled'
52+
run: echo "::warning::Check for Broken Links (Docs) timed out or failed. Please manually run the job in your machine."
53+
4754
- name: Check for Broken Links (Website)
55+
id: broken-links-website
4856
if: success() || failure()
57+
timeout-minutes: 15
58+
continue-on-error: true
4959
run: npx unbroken --parse-ids
5060
working-directory: ./website
5161

62+
- name: Warn if Broken Links (Website) timed out
63+
if: steps.broken-links-website.outcome == 'failure' || steps.broken-links-website.outcome == 'cancelled'
64+
run: echo "::warning::Check for Broken Links (Website) timed out or failed. Please manually run the job in your machine."
65+
5266
- name: Yarn Install (Website)
5367
if: success() || failure()
5468
run: yarn install --frozen-lockfile

0 commit comments

Comments
 (0)