This is an automated email from the ASF dual-hosted git repository.

uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new be617e7350c Don't auto-add Java SDK Javadoc to provider-list doc 
publishes (#68237)
be617e7350c is described below

commit be617e7350c637e1c7c3ecf87bcab069a6f1c5bd
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Jun 14 05:49:04 2026 +0200

    Don't auto-add Java SDK Javadoc to provider-list doc publishes (#68237)
---
 .github/workflows/publish-docs-to-s3.yml | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/publish-docs-to-s3.yml 
b/.github/workflows/publish-docs-to-s3.yml
index 567d217a0d5..27cf7394cb5 100644
--- a/.github/workflows/publish-docs-to-s3.yml
+++ b/.github/workflows/publish-docs-to-s3.yml
@@ -366,12 +366,22 @@ jobs:
         with:
           persist-credentials: false
           ref: ${{ inputs.ref }}
-      - name: "Check whether the Java SDK exists at this ref"
+      - name: "Decide whether to build the Java SDK Javadoc"
         id: sdk-present
         env:
           REF: ${{ inputs.ref }}
+          INCLUDE_DOCS: ${{ inputs.include-docs }}
         run: |
-          if [[ -f "java-sdk/gradlew" ]]; then
+          # The Java SDK Javadoc is only built (and later published) for full 
doc
+          # builds (include-docs == 'all') or when 'java-sdk' is explicitly 
listed.
+          # When a specific list of packages is passed (e.g. a provider release
+          # wave like "amazon cncf.kubernetes ..."), the Java SDK must NOT be 
added
+          # automatically — otherwise the publish step drags java-sdk into a
+          # providers-only publish and the S3 publish fails.
+          if [[ "${INCLUDE_DOCS}" != "all" && " ${INCLUDE_DOCS} " != *" 
java-sdk "* ]]; then
+            echo "exists=false" >> "${GITHUB_OUTPUT}"
+            echo "include-docs='${INCLUDE_DOCS}' is a specific package list 
without 'java-sdk' — skipping Javadoc build."
+          elif [[ -f "java-sdk/gradlew" ]]; then
             echo "exists=true" >> "${GITHUB_OUTPUT}"
           else
             echo "exists=false" >> "${GITHUB_OUTPUT}"

Reply via email to