From 766a4afb1bdf8b88fd69e49631714b3f8fa35cf5 Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Thu, 18 Dec 2025 12:13:56 +0100 Subject: [PATCH] ci: Skip build job for markdown-only PRs Fixes issue where job_build would run for PRs that only change markdown files. This was accidentally broken in #10421 when the changed_any_code check was removed from the last condition. This change restores the original behavior: markdown-only PRs will skip the build job while still running formatting checks in job_check_format. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b351bdc647a0..9382c42fe693 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -128,7 +128,7 @@ jobs: needs.job_get_metadata.outputs.changed_any_code == 'true' || needs.job_get_metadata.outputs.is_base_branch == 'true' || needs.job_get_metadata.outputs.is_release == 'true' || - (needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false') + (needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false' && needs.job_get_metadata.outputs.changed_any_code == 'true') steps: - name: Check out base commit (${{ github.event.pull_request.base.sha }}) uses: actions/checkout@v6