Skip to content

Commit d6b2830

Browse files
Merge branch 'main' into deadlinks/manually-creating-a-single-issue-template-for-your-repository/1
2 parents b62f449 + c773fc8 commit d6b2830

File tree

246 files changed

+4455
-889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+4455
-889
lines changed

.github/workflows/check-broken-links-github-github.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ jobs:
4444
PORT: 4000
4545
ENABLED_LANGUAGES: en
4646
run: |
47-
48-
npm run start &
47+
npm run start-for-ci &
4948
sleep 5
50-
curl --retry-connrefused --retry 3 -I http://localhost:4000/
49+
curl --retry-connrefused --retry 5 -I http://localhost:4000/
5150
5251
- name: Run broken github/github link check
5352
run: |

.github/workflows/link-check-external.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,30 @@ jobs:
4242
fi
4343
4444
- name: Upload report artifact
45-
if: failure()
46-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
45+
if: always()
46+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
4747
with:
4848
name: external-link-report
4949
path: artifacts/external-link-report.*
5050
retention-days: 14
51+
if-no-files-found: ignore
52+
53+
- name: Check if report exists
54+
if: always()
55+
id: check_report
56+
run: |
57+
if [ -f "artifacts/external-link-report.md" ]; then
58+
echo "has_report=true" >> $GITHUB_OUTPUT
59+
else
60+
echo "has_report=false" >> $GITHUB_OUTPUT
61+
echo "No broken link report generated - all links valid!"
62+
fi
5163
5264
- name: Create issue if broken links found
53-
if: failure()
65+
if: always() && steps.check_report.outputs.has_report == 'true'
5466
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v5
5567
with:
56-
token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}
68+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
5769
repository: github/docs-content
5870
title: '🌐 Broken External Links Report'
5971
content-filepath: artifacts/external-link-report.md

.github/workflows/link-check-internal.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
if: matrix.language != 'en'
7979
uses: ./.github/actions/clone-translations
8080
with:
81-
token: ${{ secrets.DOCS_BOT_PAT_READPUBLICKEY }}
81+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
8282

8383
- name: Check internal links
8484
env:
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: Upload report artifact
9292
if: always()
93-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
93+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
9494
with:
9595
name: link-report-${{ matrix.version }}-${{ matrix.language }}
9696
path: artifacts/link-report-*.md
@@ -113,7 +113,7 @@ jobs:
113113
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
114114

115115
- name: Download all artifacts
116-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
116+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
117117
with:
118118
path: reports
119119
pattern: link-report-*
@@ -125,14 +125,14 @@ jobs:
125125
# Check if any reports exist
126126
if ls reports/*.md 1> /dev/null 2>&1; then
127127
echo "has_reports=true" >> $GITHUB_OUTPUT
128-
128+
129129
# Combine all markdown reports
130130
echo "# Internal Links Report" > combined-report.md
131131
echo "" >> combined-report.md
132132
echo "Generated: $(date -u +'%Y-%m-%d %H:%M UTC')" >> combined-report.md
133133
echo "[Action run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> combined-report.md
134134
echo "" >> combined-report.md
135-
135+
136136
for report in reports/*.md; do
137137
echo "---" >> combined-report.md
138138
cat "$report" >> combined-report.md
@@ -147,7 +147,7 @@ jobs:
147147
if: steps.combine.outputs.has_reports == 'true'
148148
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v5
149149
with:
150-
token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}
150+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
151151
repository: github/docs-content
152152
title: '🔗 Broken Internal Links Report'
153153
content-filepath: combined-report.md

.github/workflows/link-check-on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Get changed files
3939
id: changed-files
40-
uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45
40+
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v45
4141
with:
4242
files: |
4343
content/**/*.md

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ---------------------------------------------------------------
99
# To update the sha:
1010
# https://github.com/github/gh-base-image/pkgs/container/gh-base-image%2Fgh-base-noble
11-
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260126-172357-g0b997f8b3@sha256:738abde0d24406108b0eb4dc3ae2b934a4d2fb08750af8b80b36c16b4ca7ad18 AS base
11+
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260128-000359-ga6d0dc7c0@sha256:e2dd6aa64dc4b3fd0fee388a817b2ce0ce239f1da31fd628c359a74832abdfcb AS base
1212

1313
# Install curl for Node install and determining the early access branch
1414
# Install git for cloning docs-early-access & translations repos
-8.33 KB
Binary file not shown.
9.91 KB
-23.6 KB
8.34 KB
9.02 KB

0 commit comments

Comments
 (0)