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

potiuk pushed a commit to branch remove-failure-when-releaing-old-airflow-docs
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit bc2dc2c81a9db17be322813b8b08890d62cd91dc
Author: Jarek Potiuk <[email protected]>
AuthorDate: Fri May 16 02:15:50 2025 -0400

    Do mot fail when checking out old version of Airflow for docs
    
    The AIRFLOW_REPO_ROOT should only be applied to specific build
    command, not all steps of all jobs - also we should install breeze
    before checking out this other folder - nor airflow are are opne.
---
 .github/workflows/publish-docs-to-s3.yml | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/publish-docs-to-s3.yml 
b/.github/workflows/publish-docs-to-s3.yml
index 1340d39881e..5d9b25be0e8 100644
--- a/.github/workflows/publish-docs-to-s3.yml
+++ b/.github/workflows/publish-docs-to-s3.yml
@@ -56,8 +56,6 @@ on:  # yamllint disable-line rule:truthy
         default: false
         type: boolean
 
-env:
-  AIRFLOW_ROOT_PATH: "/home/runner/work/temp-airflow-repo-reference"  # 
checkout dir for referenced tag
 permissions:
   contents: read
 jobs:
@@ -151,6 +149,7 @@ jobs:
       INCLUDE_SUCCESS_OUTPUTS: false
       PYTHON_MAJOR_MINOR_VERSION: 3.9
       VERBOSE: "true"
+      AIRFLOW_ROOT_PATH: "/home/runner/work/temp-airflow-repo-reference"
     steps:
       - name: "Cleanup repo"
         shell: bash
@@ -208,18 +207,18 @@ jobs:
         uses: actions/checkout@v4
         with:
           persist-credentials: false
-      - name: "Checkout ${{ inputs.ref }}"
-        run: |
-          git clone https://github.com/apache/airflow.git 
"${AIRFLOW_ROOT_PATH}"
-          cd "${AIRFLOW_ROOT_PATH}" && git checkout ${REF}
-        env:
-          REF: ${{ inputs.ref }}
       - name: "Prepare breeze & CI image: 3.9"
         uses: ./.github/actions/prepare_breeze_and_image
         with:
           platform: "linux/amd64"
           python: 3.9
           use-uv: true
+      - name: "Checkout ${{ inputs.ref }}"
+        run: |
+          git clone https://github.com/apache/airflow.git 
"${AIRFLOW_ROOT_PATH}"
+          cd "${AIRFLOW_ROOT_PATH}" && git checkout ${REF}
+        env:
+          REF: ${{ inputs.ref }}
       - name: "Download docs prepared as artifacts"
         uses: actions/download-artifact@v4
         with:

Reply via email to