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

kaxilnaik pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airflow-site-archive.git


The following commit(s) were added to refs/heads/staging by this push:
     new 3662b075620 Add registry sync to s3-to-github workflow (staging) (#30)
3662b075620 is described below

commit 3662b07562093c547bb47bc2de8818c4ee162314
Author: Kaxil Naik <[email protected]>
AuthorDate: Mon Mar 9 23:54:38 2026 +0000

    Add registry sync to s3-to-github workflow (staging) (#30)
    
    Same as https://github.com/apache/airflow-site-archive/pull/90 but 
targeting `staging`.
    
    The staging commit step requires `github.ref == 'refs/heads/staging'`, so 
the workflow must also exist on the `staging` branch for staging syncs to 
commit.
---
 .github/workflows/s3-to-github.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/.github/workflows/s3-to-github.yml 
b/.github/workflows/s3-to-github.yml
index 2f07fff2b2f..53716c30c4b 100644
--- a/.github/workflows/s3-to-github.yml
+++ b/.github/workflows/s3-to-github.yml
@@ -38,6 +38,11 @@ on: # yamllint disable-line rule:truthy
         required: false
         default: true
         type: boolean
+      sync-registry:
+        description: "Sync registry files from S3"
+        required: false
+        default: true
+        type: boolean
       sync-back-references:
         description: "Sync generated back-references to S3"
         required: false
@@ -71,8 +76,10 @@ jobs:
           echo "Processes: ${PROCESSES}"
           if [[ "${SOURCE}"  == "live" ]]; then
              echo "source-location=s3://live-docs-airflow-apache-org/docs/" >> 
${GITHUB_OUTPUT}
+             echo 
"registry-source-location=s3://live-docs-airflow-apache-org/registry/" >> 
${GITHUB_OUTPUT}
           else
              echo "source-location=s3://staging-docs-airflow-apache-org/docs/" 
>> ${GITHUB_OUTPUT}
+             echo 
"registry-source-location=s3://staging-docs-airflow-apache-org/registry/" >> 
${GITHUB_OUTPUT}
           fi
 
       - name: "Install uv"
@@ -101,6 +108,7 @@ jobs:
           echo "sparse-checkout<<EOF" >> ${GITHUB_OUTPUT}
           echo ".github" >> ${GITHUB_OUTPUT}
           echo "scripts" >> ${GITHUB_OUTPUT}
+          echo "registry-archive" >> ${GITHUB_OUTPUT}
           if [[ "${DOCUMENT_PACKAGES}" != "all" ]]; then
             echo "Preprocessing docs packages: ${DOCUMENT_PACKAGES}"
             packages=""
@@ -167,6 +175,15 @@ jobs:
             --processes "${PROCESSES}"
         working-directory: /mnt/cloned-airflow-site-archive
 
+      - name: Syncing registry from ${{ inputs.source }}
+        env:
+          REGISTRY_SOURCE_LOCATION: ${{ 
steps.parameters.outputs.registry-source-location }}
+        run: |
+          set -x
+          aws s3 sync "${REGISTRY_SOURCE_LOCATION}" ./registry-archive/ 
--delete
+        working-directory: /mnt/cloned-airflow-site-archive
+        if: inputs.sync-registry == true
+
       - uses: actions/checkout@v4
         # Checkout airflow to run breeze
         with:

Reply via email to