From 25f8ade9d5643d045b1a6cce7d13549ed1423751 Mon Sep 17 00:00:00 2001 From: Yemaneberhan-Lemma Date: Thu, 22 Aug 2024 21:59:56 +0300 Subject: [PATCH 1/3] Added GitHub Actions workflow to check broken links --- .github/workflows/check-broken-links.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/check-broken-links.yml diff --git a/.github/workflows/check-broken-links.yml b/.github/workflows/check-broken-links.yml new file mode 100644 index 0000000..55a8229 --- /dev/null +++ b/.github/workflows/check-broken-links.yml @@ -0,0 +1,22 @@ +name: Check for Broken Links + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Run lychee link checker + uses: lycheeverse/lychee-action@v1.1.0 + with: + args: --verbose --exclude mailto --timeout 30000 'content/_/_' + github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From c4fcc05ef3400b796a95ed621b830d82d83e83d0 Mon Sep 17 00:00:00 2001 From: Yemaneberhan-Lemma Date: Fri, 23 Aug 2024 22:27:49 +0300 Subject: [PATCH 2/3] Remove separate link-checking workflow --- .github/workflows/check-broken-links.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/check-broken-links.yml diff --git a/.github/workflows/check-broken-links.yml b/.github/workflows/check-broken-links.yml deleted file mode 100644 index 55a8229..0000000 --- a/.github/workflows/check-broken-links.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Check for Broken Links - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - linkChecker: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Run lychee link checker - uses: lycheeverse/lychee-action@v1.1.0 - with: - args: --verbose --exclude mailto --timeout 30000 'content/_/_' - github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 4af4c2136cfd9d48a2c93fedcacf797936505045 Mon Sep 17 00:00:00 2001 From: Yemaneberhan-Lemma Date: Fri, 23 Aug 2024 22:38:06 +0300 Subject: [PATCH 3/3] Integrate link-checking into PR workflow --- .github/workflows/pr.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f5c0881..fa30fa6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -46,3 +46,8 @@ jobs: run: | hugo mod get -u hugo --debug + + - name: Run lychee link checker + uses: lycheeverse/lychee-action@v1.4.0 + with: + args: --verbose --exclude mailto --timeout 30000 'public/_/_' \ No newline at end of file