From e8080b82f1e2bd2f976b8a47058efb7459bbc9dd Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 15 Jan 2024 16:06:50 +0100 Subject: [PATCH] Avoid auto-detection of Airflow Sources during breeze installation (#36792) In some circumstances, when breeze is installed in CI (when we update to newer breeze version in "build-info" workflow in old branches) breeze is not able to auto-detect sources it was installed from. This PR changes it by passing the sources via environment variable. --- .github/actions/breeze/action.yml | 4 ++++ .github/workflows/build-images.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/actions/breeze/action.yml b/.github/actions/breeze/action.yml index 77de5f2d295b4..92f94f23966ce 100644 --- a/.github/actions/breeze/action.yml +++ b/.github/actions/breeze/action.yml @@ -45,6 +45,8 @@ runs: - name: "Free space" shell: bash run: breeze ci free-space + env: + AIRFLOW_SOURCES_ROOT: "${{ github.workspace }}" - name: "Get Python version" shell: bash run: > @@ -54,3 +56,5 @@ runs: - name: "Disable cheatsheet" shell: bash run: breeze setup config --no-cheatsheet --no-asciiart + env: + AIRFLOW_SOURCES_ROOT: "${{ github.workspace }}" diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 8ea80a9ac63f4..14071f54c49a9 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -176,6 +176,7 @@ jobs: PR_LABELS: "${{ steps.get-latest-pr-labels.outputs.pull-request-labels }}" COMMIT_REF: "${{ env.TARGET_COMMIT_SHA }}" VERBOSE: "false" + AIRFLOW_SOURCES_ROOT: "${{ github.workspace }}" run: breeze ci selective-check 2>> ${GITHUB_OUTPUT} - name: env run: printenv