Skip to content

Commit 766a4af

Browse files
committed
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.
1 parent dac328a commit 766a4af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
needs.job_get_metadata.outputs.changed_any_code == 'true' ||
129129
needs.job_get_metadata.outputs.is_base_branch == 'true' ||
130130
needs.job_get_metadata.outputs.is_release == 'true' ||
131-
(needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false')
131+
(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')
132132
steps:
133133
- name: Check out base commit (${{ github.event.pull_request.base.sha }})
134134
uses: actions/checkout@v6

0 commit comments

Comments
 (0)