Skip to content

Commit 31e49fc

Browse files
committed
Fix condition
1 parent f335613 commit 31e49fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/preview-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ jobs:
133133
dotnet run --project src/docs-builder -- --strict --path-prefix "${PATH_PREFIX}"
134134
135135
- name: Build documentation
136-
if: github.repository != 'elastic/docs-builder' && steps.deployment.outputs.result || github.event_name == 'merge_group'
136+
if: github.repository != 'elastic/docs-builder' && (steps.deployment.outputs.result || (steps.check-files.outputs.any_changed == 'true' && github.event_name == 'merge_group'))
137137
uses: elastic/docs-builder@main
138138
continue-on-error: ${{ fromJSON(inputs.continue-on-error != '' && inputs.continue-on-error || 'false') }}
139139
with:
140140
prefix: ${{ env.PATH_PREFIX }}
141141
strict: ${{ fromJSON(inputs.strict != '' && inputs.strict || 'true') }}
142142

143143
- uses: elastic/docs-builder/actions/validate-inbound-local@main
144-
if: ${{ !cancelled() && (steps.deployment.outputs.result || github.event_name == 'merge_group') }}
144+
if: ${{ !cancelled() && (steps.deployment.outputs.result || (steps.check-files.outputs.any_changed == 'true' && github.event_name == 'merge_group')) }}
145145

146146
- uses: elastic/docs-builder/.github/actions/aws-auth@main
147147
if: ${{ !cancelled() && steps.deployment.outputs.result }}

0 commit comments

Comments
 (0)