You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/10/03 21:03:57 UTC

[airflow] branch v1-10-test updated: Fix 'Upload documentation' step in CI (#10981)

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

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v1-10-test by this push:
     new 3025a0d  Fix 'Upload documentation' step in CI (#10981)
3025a0d is described below

commit 3025a0dc62c6b5eea7379688416f1464e119f788
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Thu Sep 17 03:57:25 2020 +0100

    Fix 'Upload documentation' step in CI (#10981)
    
    
    (cherry picked from commit a575c79cee3f61ccc32cde15ad33a84ae921d630)
---
 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 db51773..e71ce39 100644
--- a/scripts/ci/libraries/_initialization.sh
+++ b/scripts/ci/libraries/_initialization.sh
@@ -554,7 +554,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