From 648bf26fcaa8d155561603240752516b8c0fa6b4 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 5 Jul 2021 16:07:35 +0300 Subject: [PATCH] tests: Don't overwrite CI statuses on GitHub branched for nightly pipelines Closes #1527. --- schutzbot/update_github_status.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/schutzbot/update_github_status.sh b/schutzbot/update_github_status.sh index a59b63409..99f0291ad 100755 --- a/schutzbot/update_github_status.sh +++ b/schutzbot/update_github_status.sh @@ -1,5 +1,11 @@ #!/bin/bash + +# Don't overwrite CI statuses on GitHub branches for nightly pipelines +if [[ "$CI_PIPELINE_SOURCE" == "schedule" ]]; then + exit 0 +fi + if [[ $1 == "start" ]]; then GITHUB_NEW_STATE="pending" GITHUB_NEW_DESC="I'm currently testing this commit, be patient."