From 99620cdec8f7fbdc13972c673594fa33ee43142c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haluk=20M=2E=20Karako=C3=A7?= Date: Wed, 30 Sep 2026 20:04:21 +0300 Subject: [PATCH] ci: replace deprecated markdown link check with lychee gaurav-nelson/github-action-markdown-link-check is deprecated. Use lycheeverse/lychee-action instead, both in this repository's workflow and in the workflow shipped with the template. The link check does not need the SIMATIC AX tooling, so it no longer runs inside the apax CI container. Fixes #64 --- .../workflows/package-development-workflow.yml | 12 +++--------- .../workflows/package-development-workflow.yml | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/package-development-workflow.yml b/.github/workflows/package-development-workflow.yml index 7cc904c..96163e8 100644 --- a/.github/workflows/package-development-workflow.yml +++ b/.github/workflows/package-development-workflow.yml @@ -21,17 +21,11 @@ on: permissions: contents: read # required for checkout - packages: read # required for pulling the SIMATIC AX container jobs: build-and-test: name: Build and Test runs-on: ubuntu-24.04 - container: - image: ghcr.io/simatic-ax/ci-images/apax-ci-image:4.3.0 - credentials: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout Code uses: actions/checkout@v7 @@ -40,7 +34,7 @@ jobs: ref: ${{ inputs.ref != '' && inputs.ref || github.ref }} - name: Check links - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: lycheeverse/lychee-action@v2 with: - check-modified-files-only: 'yes' - base-branch: 'main' \ No newline at end of file + # template/LICENSE.md is not part of this repository; it is expected to exist in applications generated from this template (listed in template/templatify-meta-information.yml) + args: --no-progress --exclude '^file://.*/template/LICENSE\.md$' './**/*.md' diff --git a/template/.github/workflows/package-development-workflow.yml b/template/.github/workflows/package-development-workflow.yml index b889959..026c01a 100644 --- a/template/.github/workflows/package-development-workflow.yml +++ b/template/.github/workflows/package-development-workflow.yml @@ -55,8 +55,16 @@ jobs: - name: Test source code uses: simatic-ax/actions/apax-test@v4 - - name: Check links - uses: gaurav-nelson/github-action-markdown-link-check@v1 + check-links: + name: Check links + runs-on: ubuntu-24.04 + steps: + - name: Checkout Code + uses: actions/checkout@v7 + with: + ref: ${{ inputs.ref != '' && inputs.ref || github.ref }} + + - name: Check links in Markdown files + uses: lycheeverse/lychee-action@v2 with: - check-modified-files-only: 'yes' - base-branch: 'main' \ No newline at end of file + args: --no-progress './**/*.md'