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 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