Skip to content

Commit f1c8c6b

Browse files
authored
Also trigger preview build on deleted files (#598)
* Also trigger preview build on deleted files * Fix merge conflicts
1 parent b38f017 commit f1c8c6b

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,7 +126,7 @@ 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:
@@ -135,7 +135,7 @@ jobs:
135135

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

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

0 commit comments

Comments
 (0)