From 5384c24af3e3419062a3702458b0c6051e6a6c73 Mon Sep 17 00:00:00 2001 From: borislavr Date: Mon, 21 Jul 2025 09:34:50 +0000 Subject: [PATCH 1/2] fix(ci): fix for link-checker workflow [skip ci] Related issue: https://github.com/Netcracker/qubership-workflow-hub/issues/264 --- .github/workflows/link-checker.yaml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/link-checker.yaml diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml new file mode 100644 index 0000000..cfa8561 --- /dev/null +++ b/.github/workflows/link-checker.yaml @@ -0,0 +1,31 @@ +--- +name: Link Checker + +on: + push: null + repository_dispatch: null + workflow_dispatch: null +permissions: + contents: read +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v2 + with: + args: >- + './**/*.md' + --verbose + --no-progress + --user-agent 'Mozilla/5.0 (X11; Linux x86_64) Chrome/134.0.0.0' + --retry-wait-time 30 + --max-retries 5 + --accept 100..=103,200..=299,429 + --cookie-jar cookies.json + --exclude-all-private + format: markdown + fail: true From f2fcfb243b7d8e191c1ceab237e7b7c0415efc4f Mon Sep 17 00:00:00 2001 From: borislavr Date: Fri, 29 Aug 2025 07:38:42 +0000 Subject: [PATCH 2/2] fix(ci): fix for link-checker workflow Related issue: https://github.com/Netcracker/.github/issues/104 --- .github/workflows/link-checker.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index cfa8561..c41cfda 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -5,6 +5,10 @@ on: push: null repository_dispatch: null workflow_dispatch: null + pull_request: + branches: [main] + types: + [opened, reopened, synchronize] permissions: contents: read jobs: @@ -13,6 +17,14 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Restore lychee cache + uses: actions/cache@v4 + id: restore-cache + with: + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- + - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v2 @@ -22,10 +34,14 @@ jobs: --verbose --no-progress --user-agent 'Mozilla/5.0 (X11; Linux x86_64) Chrome/134.0.0.0' - --retry-wait-time 30 - --max-retries 5 + --retry-wait-time 60 + --max-retries 8 --accept 100..=103,200..=299,429 --cookie-jar cookies.json --exclude-all-private + --max-concurrency 4 + --cache + --cache-exclude-status '429, 500..502' + --max-cache-age 1d format: markdown fail: true