From 950a2e51964fb6f0f9daddd688dca56baf93e130 Mon Sep 17 00:00:00 2001 From: Oa8choo2 <77433187+Oa8choo2@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:14:41 +0200 Subject: [PATCH 1/2] Update build.yml remove link check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the link check by lychee and run this as a weekly reporting, generating an issue when broken links are found. See [lycheeverse/lychee: ⚡ Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more!](https://github.com/lycheeverse/lychee?tab=readme-ov-file) --- .github/workflows/build.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec6338fa0a02..e8166f3330e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,12 +30,3 @@ jobs: run: | python3 build.py find build -type f - - - name: Check faulty external links - run: | - cd scripts/link_checker - pip install -r requirements.txt - echo "Generating links from build" - ./generate_links_from_build.sh ../../build/HPC/Gent > links.txt - echo "Checking links" - python check_links.py --whitelist whitelist.txt links.txt From ea7d7d5247a9dba55a1079291779e37636b84c16 Mon Sep 17 00:00:00 2001 From: Oa8choo2 <77433187+Oa8choo2@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:22:54 +0200 Subject: [PATCH 2/2] Create links.yml add lychee, a link checker, which will run every day at 6. --- .github/workflows/links.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/links.yml diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 000000000000..ef5638c3e21e --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,29 @@ +name: Links + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: "00 6 * * *" + +jobs: + linkChecker: + runs-on: ubuntu-latest + permissions: + issues: write # required for peter-evans/create-issue-from-file + steps: + - uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v2 + with: + fail: false + + - name: Create Issue From File + if: steps.lychee.outputs.exit_code != 0 + uses: peter-evans/create-issue-from-file@v5 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated issue