Skip to content

Commit 0b4a71d

Browse files
committed
reverse checks to see the other path
1 parent a00ee83 commit 0b4a71d

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
@@ -60,14 +60,14 @@ jobs:
6060
steps:
6161
- name: Not a push event
6262
id: event-check
63-
if: contains(fromJSON('["merge_group", "pull_request", "pull_request_target"]'), github.event_name)
63+
if: contains(fromJSON('["merge_group", "push", "pull_request_target"]'), github.event_name)
6464
# ensure we emit static output to simplify our checks in the build step
6565
run: |
6666
echo "content-source-match=true" >> $GITHUB_OUTPUT
6767
echo "content-source-name=next" >> $GITHUB_OUTPUT
6868
- name: Match for push events
6969
id: match
70-
if: contains(fromJSON('["push"]'), github.event_name)
70+
if: contains(fromJSON('["pull_request"]'), github.event_name)
7171
uses: elastic/docs-builder/actions/assembler-match@main
7272
with:
7373
ref_name: ${{ github.event.ref_name }}

0 commit comments

Comments
 (0)