Skip to content

Commit

Permalink
[OAS] Only build serverless docs off main (elastic#192294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz authored Sep 9, 2024
1 parent 10292a4 commit f0164e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildkite/scripts/steps/capture_oas_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ if is_pr && ! is_auto_commit_disabled; then
cmd="$cmd --update"
fi

if [[ $BUILDKITE_PULL_REQUEST != "false" && "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" != "main" ]] || [[ $BUILDKITE_PULL_REQUEST == "false" && "$BUILDKITE_BRANCH" != "main" ]]; then
cmd="$cmd --no-serverless"
fi

eval "$cmd"
check_for_changed_files "$cmd" true

0 comments on commit f0164e7

Please sign in to comment.