From ca647f0c30593e9f1670d334a4b2b61000c66e21 Mon Sep 17 00:00:00 2001 From: "Marco C." <46560192+Marcondiro@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:04:01 +0100 Subject: [PATCH] CI check-md-links fix (#2824) Use ubuntu-22.04 and restore the action instead of the script --- .github/workflows/build_and_test.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 5fa33cf098..d3013dff2b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -209,21 +209,15 @@ jobs: run: ./scripts/fmt_all.sh check check-md-links: - runs-on: ubuntu-latest + # fixme: use ubuntu-latest once this gets fixed https://github.com/UmbrellaDocs/action-linkspector/issues/32 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - name: Install linkspector - shell: bash - run: sudo apt-get update && sudo apt-get install -y npm && npm install -g @umbrelladocs/linkspector - name: Run linkspector - shell: bash - run: ./scripts/check_md_links.sh - # TODO: Use github action once it's fixed (https://github.com/UmbrellaDocs/action-linkspector/issues/20) - # - name: Run linkspector - # uses: umbrelladocs/action-linkspector@v1 - # with: - # fail_on_error: 'true' - # config_file: '.github/.linkspector.yml' + uses: umbrelladocs/action-linkspector@v1 + with: + fail_on_error: 'true' + config_file: '.github/.linkspector.yml' msrv: runs-on: ubuntu-latest