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

potiuk 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 01354a40598 Fix provider registry never updating after docs publish 
(#65188)
01354a40598 is described below

commit 01354a4059888d9bc2c5cfb6bc33eae602cdaeaa
Author: Kaxil Naik <[email protected]>
AuthorDate: Tue Apr 14 11:02:02 2026 +0100

    Fix provider registry never updating after docs publish (#65188)
    
    The include-docs input uses short provider names like "amazon" and
    "common.ai", but the extraction logic only matched full package names
    like "apache-airflow-providers-amazon". This meant REGISTRY_PROVIDERS
    was always empty and the registry update job was always skipped.
    
    Handle both short names (converting dots to hyphens) and full package
    names, while skipping non-provider packages.
---
 .github/workflows/publish-docs-to-s3.yml | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/publish-docs-to-s3.yml 
b/.github/workflows/publish-docs-to-s3.yml
index 4e0ce4d260d..a029eef3f7e 100644
--- a/.github/workflows/publish-docs-to-s3.yml
+++ b/.github/workflows/publish-docs-to-s3.yml
@@ -167,8 +167,8 @@ jobs:
              echo "airflow-base-version=no-airflow" >> ${GITHUB_OUTPUT}
           fi
           # Extract provider IDs for registry update
-          # include-docs contains package names like 
"apache-airflow-providers-amazon"
-          # Strip the "apache-airflow-providers-" prefix to get provider IDs
+          # include-docs contains short names like "amazon", "common.ai", 
"openlineage"
+          # or full package names like "apache-airflow-providers-amazon"
           REGISTRY_PROVIDERS=""
           for pkg in ${INCLUDE_DOCS}; do
             case "${pkg}" in
@@ -176,6 +176,14 @@ jobs:
                 PROVIDER_ID="${pkg#apache-airflow-providers-}"
                 
REGISTRY_PROVIDERS="${REGISTRY_PROVIDERS:+${REGISTRY_PROVIDERS} }${PROVIDER_ID}"
                 ;;
+              
apache-airflow|all-providers|apache-airflow-providers|helm-chart|docker-stack)
+                # Not a provider package, skip
+                ;;
+              *)
+                # Short name like "amazon" or "common.ai" -- convert dots to 
hyphens
+                PROVIDER_ID="${pkg//./-}"
+                
REGISTRY_PROVIDERS="${REGISTRY_PROVIDERS:+${REGISTRY_PROVIDERS} }${PROVIDER_ID}"
+                ;;
             esac
           done
           echo "registry-providers=${REGISTRY_PROVIDERS}" >> ${GITHUB_OUTPUT}

Reply via email to