From e7386577a9fd89c2f563fae0f7f77c19b945b505 Mon Sep 17 00:00:00 2001 From: ItsCurulo <56319055+ItsCurulo@users.noreply.github.com> Date: Sun, 28 Dec 2025 17:42:32 +0100 Subject: [PATCH 1/3] fix(ci): fix link-checker context and prevent deploy on PR --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3087d98e..38506e68 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main workflow_dispatch: permissions: @@ -21,6 +24,8 @@ jobs: steps: - name: Checkout markdown uses: actions/checkout@v6.0.1 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Link Checker uses: lycheeverse/lychee-action@v2.7.0 @@ -89,6 +94,7 @@ jobs: deploy: name: Deploy web doc runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' needs: [md_linter, spell_checker] steps: - name: Checkout markdown From 9ab73ead02a1be1ad68ba5aefa134e75f47271ed Mon Sep 17 00:00:00 2001 From: ItsCurulo <56319055+ItsCurulo@users.noreply.github.com> Date: Mon, 29 Dec 2025 12:45:59 +0100 Subject: [PATCH 2/3] Fix: Move link checker logic to pr.yaml --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 38506e68..7287c9bd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,7 +51,7 @@ jobs: - name: Lint markdown uses: DavidAnson/markdownlint-cli2-action@v22.0.0 with: - config: '.markdownlint.yaml' + config: ".markdownlint.yaml" globs: | docs/**/*.md docs/*.md @@ -79,7 +79,7 @@ jobs: - name: Set up Python for PT-BR uses: actions/setup-python@v6.1.0 with: - python-version: '3.10' + python-version: "3.10" - name: Install pyspelling for PT-BR run: | From ed0a2651e45e8be1fd160ce0398efed444f7d842 Mon Sep 17 00:00:00 2001 From: ItsCurulo <56319055+ItsCurulo@users.noreply.github.com> Date: Mon, 29 Dec 2025 12:57:12 +0100 Subject: [PATCH 3/3] Fix: Move link checker logic to pr.yaml --- .github/workflows/ci.yaml | 7 +------ .github/workflows/pr.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7287c9bd..6919bc0d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,9 +4,6 @@ on: push: branches: - main - pull_request: - branches: - - main workflow_dispatch: permissions: @@ -24,8 +21,6 @@ jobs: steps: - name: Checkout markdown uses: actions/checkout@v6.0.1 - with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Link Checker uses: lycheeverse/lychee-action@v2.7.0 @@ -94,7 +89,7 @@ jobs: deploy: name: Deploy web doc runs-on: ubuntu-latest - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' + needs: [md_linter, spell_checker] steps: - name: Checkout markdown diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index f4d592ce..fdbd511b 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout markdown uses: actions/checkout@v6.0.1 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Link Checker uses: lycheeverse/lychee-action@v2.7.0 @@ -39,7 +41,7 @@ jobs: - name: Lint markdown uses: DavidAnson/markdownlint-cli2-action@v22.0.0 with: - config: '.markdownlint.yaml' + config: ".markdownlint.yaml" globs: | docs/**/*.md docs/*.md @@ -81,7 +83,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6.1.0 with: - python-version: '3.10' + python-version: "3.10" - name: Install pyspelling run: |