From 2ab31b47d6db53936fe6372e68d5df737b0b0f04 Mon Sep 17 00:00:00 2001 From: borislavr Date: Mon, 21 Jul 2025 09:35:45 +0000 Subject: [PATCH 1/3] 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 0000000000000..cfa8561177efb --- /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 972c02d10b4d08227972665f90bd64abd94623b5 Mon Sep 17 00:00:00 2001 From: borislavr Date: Fri, 29 Aug 2025 07:39:32 +0000 Subject: [PATCH 2/3] 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 cfa8561177efb..c41cfda6fd4bd 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 From 6bbd912dbaebbc3de77c61fa2d830da233ff261a Mon Sep 17 00:00:00 2001 From: borislavr Date: Thu, 3 Dec 2026 08:19:16 +0000 Subject: [PATCH 3/3] fix(ci): fix for link-checker workflow Related issue: https://github.com/Netcracker/.github/issues/104 --- .github/workflows/link-checker.yaml | 35 +++++++++++++---------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index c41cfda6fd4bd..369013692fd31 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -1,5 +1,5 @@ --- -name: Link Checker +name: "Link Checker" on: push: null @@ -7,41 +7,36 @@ on: workflow_dispatch: null pull_request: branches: [main] - types: - [opened, reopened, synchronize] permissions: contents: read jobs: linkChecker: + name: "Run Link Checker" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: "Checkout code" + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - - name: Restore lychee cache - uses: actions/cache@v4 + - name: "Restore lychee cache" + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 id: restore-cache with: path: .lycheecache key: cache-lychee-${{ github.sha }} restore-keys: cache-lychee- - - name: Link Checker + - name: "Link Checker" id: lychee - uses: lycheeverse/lychee-action@v2 + uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 #v2.9.0 with: args: >- - './**/*.md' - --verbose - --no-progress - --user-agent 'Mozilla/5.0 (X11; Linux x86_64) Chrome/134.0.0.0' - --retry-wait-time 60 - --max-retries 8 + './**/*.md' --verbose --no-progress + --retry-wait-time 30 --max-retries 5 --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 + --exclude-all-private --max-concurrency 4 + --cache --cache-exclude-status '429, 500..599' --max-cache-age 1d + --remap 'https://github\.com/([^/]+)/([^/]+)/blob/(.+) https://raw.githubusercontent.com/$1/$2/$3' format: markdown fail: true