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 e8080b82f1 Avoid auto-detection of Airflow Sources during breeze
installation (#36792)
e8080b82f1 is described below
commit e8080b82f1e2bd2f976b8a47058efb7459bbc9dd
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Jan 15 16:06:50 2024 +0100
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 77de5f2d29..92f94f2396 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 8ea80a9ac6..14071f54c4 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