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 ac7ca1c269d4d1cb780fffe31d4226771fa3bf62 Author: Jarek Potiuk <ja...@potiuk.com> 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..3ae70f02e7c 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: @@ -174,6 +172,7 @@ jobs: - name: "Building docs with --docs-only flag" env: INCLUDE_DOCS: ${{ needs.build-info.outputs.include-docs }} + AIRFLOW_ROOT_PATH: "/home/runner/work/temp-airflow-repo-reference" # checkout dir for referenced tag run: > breeze build-docs ${INCLUDE_DOCS} --docs-only --include-commits - name: "Upload build docs" @@ -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: