From 232c25bb886e686b4c1f930022bf73386495d283 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Wed, 11 Sep 2024 12:23:45 -0500 Subject: [PATCH] CLDR-16526 spec: link check spec/rfc - run lychee action - output summary --- .github/workflows/gh-pages.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index cb9285a103e..5f822eaf09b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -60,7 +60,23 @@ jobs: # Warn, don't fail yet run: npx markdownlint-cli *.md {specs,docs}/*.md || (echo Warning, please fix these ; true) - name: Note any changes + # if the archiver had to update anything, or if anchors changed run: git status ; git diff + - name: Restore lychee cache + uses: actions/cache@v3 + with: + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- + - name: Run lychee + uses: lycheeverse/lychee-action@v1 + with: + args: "-n --cache --max-cache-age 10d docs/rfc docs/ldml" + fail: false + format: markdown + output: linkcheck.md + - name: Link Checker Summary + run: cat linkcheck.md >> $GITHUB_STEP_SUMMARY - uses: ruby/setup-ruby@v1 with: ruby-version: 3.2