Skip to content

Commit 9b6b98a

Browse files
committed
Also trigger preview build on deleted files
1 parent eae1c9c commit 9b6b98a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/preview-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
tool-cache: false
6060

6161
- name: Create Deployment
62-
if: github.event_name == 'push' || (steps.check-files.outputs.any_changed == 'true' && startsWith(github.event_name, 'pull_request'))
62+
if: github.event_name == 'push' || (steps.check-files.outputs.any_modified == 'true' && startsWith(github.event_name, 'pull_request'))
6363
uses: actions/github-script@v7
6464
id: deployment
6565
env:
@@ -126,15 +126,15 @@ jobs:
126126
dotnet run --project src/docs-builder -- --strict --path-prefix "${PATH_PREFIX}"
127127
128128
- name: Build documentation
129-
if: github.repository != 'elastic/docs-builder' && (steps.deployment.outputs.result || (steps.check-files.outputs.any_changed == 'true' && github.event_name == 'merge_group'))
129+
if: github.repository != 'elastic/docs-builder' && (steps.deployment.outputs.result || (steps.check-files.outputs.any_modified == 'true' && github.event_name == 'merge_group'))
130130
uses: elastic/docs-builder@main
131131
continue-on-error: ${{ fromJSON(inputs.continue-on-error != '' && inputs.continue-on-error || 'false') }}
132132
with:
133133
prefix: ${{ env.PATH_PREFIX }}
134134
strict: ${{ fromJSON(inputs.strict != '' && inputs.strict || 'true') }}
135135

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

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

0 commit comments

Comments
 (0)