This is an automated email from the ASF dual-hosted git repository.
dimberman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new a575c79 Fix 'Upload documentation' step in CI (#10981)
a575c79 is described below
commit a575c79cee3f61ccc32cde15ad33a84ae921d630
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Sep 17 03:57:25 2020 +0100
Fix 'Upload documentation' step in CI (#10981)
---
scripts/ci/libraries/_initialization.sh | 2 +-
scripts/in_container/run_docs_build.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/ci/libraries/_initialization.sh
b/scripts/ci/libraries/_initialization.sh
index 27ca692..adffbcd 100644
--- a/scripts/ci/libraries/_initialization.sh
+++ b/scripts/ci/libraries/_initialization.sh
@@ -479,7 +479,7 @@ EOF
# This function maps CI-specific variables into a generic ones (prefixed with
CI_) that
# we used in other scripts
function initialization::get_environment_for_builds_on_ci() {
- if [[ ${GITHUB_ACTIONS:=} == "true" ]]; then
+ if [[ ${CI:=} == "true" ]]; then
export CI_TARGET_REPO="${GITHUB_REPOSITORY}"
export CI_TARGET_BRANCH="${GITHUB_BASE_REF:="master"}"
export CI_BUILD_ID="${GITHUB_RUN_ID}"
diff --git a/scripts/in_container/run_docs_build.sh
b/scripts/in_container/run_docs_build.sh
index 1304ee8..f6b232f 100755
--- a/scripts/in_container/run_docs_build.sh
+++ b/scripts/in_container/run_docs_build.sh
@@ -25,7 +25,7 @@ sudo rm -rf "${AIRFLOW_SOURCES}/docs/_api/*"
sudo -E "${AIRFLOW_SOURCES}/docs/build_docs.py" "${@}"
-if [[ ${GITHUB_ACTIONS:="false"} == "true" && -d
"${AIRFLOW_SOURCES}/docs/_build/html" ]]; then
+if [[ ${CI:="false"} == "true" && -d "${AIRFLOW_SOURCES}/docs/_build/html" ]];
then
rm -rf "/files/documentation"
cp -r "${AIRFLOW_SOURCES}/docs/_build/html" "/files/documentation"
fi