Skip to content

Commit

Permalink
Fix 'Upload documentation' step in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxil committed Sep 17, 2020
1 parent 6a3ff67 commit 02dfd80
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 @@ -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}"
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 02dfd80

Please sign in to comment.