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/06/09 06:47:54 UTC
[airflow] branch master updated: Fixes failure of the build scripts
when remote repo does not exist (#9188)
This is an automated email from the ASF dual-hosted git repository.
potiuk 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 337a2dc Fixes failure of the build scripts when remote repo does not exist (#9188)
337a2dc is described below
commit 337a2dc9bce689061c822f9b1ad172d4128de153
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Tue Jun 9 08:47:25 2020 +0200
Fixes failure of the build scripts when remote repo does not exist (#9188)
---
scripts/ci/libraries/_build_images.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/ci/libraries/_build_images.sh b/scripts/ci/libraries/_build_images.sh
index 123665b..6561184 100644
--- a/scripts/ci/libraries/_build_images.sh
+++ b/scripts/ci/libraries/_build_images.sh
@@ -355,7 +355,7 @@ function get_ci_environment() {
export CI_SOURCE_REPO="${GITHUB_ACTOR}/${SOURCE_AIRFLOW_REPO}"
export CI_SOURCE_BRANCH="${GITHUB_HEAD_REF}"
BRANCH_EXISTS=$(git ls-remote --heads \
- "https://github.com/${CI_SOURCE_REPO}.git" "${CI_SOURCE_BRANCH}")
+ "https://github.com/${CI_SOURCE_REPO}.git" "${CI_SOURCE_BRANCH}" || true)
if [[ ${BRANCH_EXISTS} == "" ]]; then
echo
echo "https://github.com/${CI_SOURCE_REPO}.git Branch ${CI_SOURCE_BRANCH} does not exist"