Skip to content

Commit

Permalink
Fix 'Upload documentation' step in CI (#10981)
Browse files Browse the repository at this point in the history
(cherry picked from commit a575c79)
  • Loading branch information
kaxil authored and potiuk committed Oct 3, 2020
1 parent 2474f74 commit 3025a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/ci/libraries/_initialization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/in_container/run_docs_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3025a0d

Please sign in to comment.