Skip to content

Commit 138b3b9

Browse files
committed
Only check auth_association if any docs file was modified
1 parent d8383c1 commit 138b3b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/preview-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
with:
8181
files: ${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }}
8282
- name: Check PR author association
83+
if: steps.check-files.outputs.any_modified == 'true'
8384
env:
8485
ANY_MODIFIED: $ {{ steps.check-files.outputs.any_modified }}
8586
# language=bash
@@ -88,7 +89,7 @@ jobs:
8889
"pull_request" | "pull_request_target")
8990
# If no documentation files changed, we can just continue.
9091
# The build job is handling the logic to skip the build.
91-
if [[ "${ANY_MODIFIED}" == "false" || "${AUTHOR_ASSOCIATION}" == "MEMBER" ]]; then
92+
if [[ "${AUTHOR_ASSOCIATION}" == "MEMBER" ]]; then
9293
exit 0;
9394
else
9495
echo "::error::You must be a member of the elastic organization to trigger a preview build. Please ask a member of the elastic organization to review your PR and re-trigger the build.";

0 commit comments

Comments
 (0)