tests: Don't overwrite CI statuses on GitHub branched for nightly pipelines

Closes #1527.
This commit is contained in:
Alexander Todorov 2021-07-05 16:07:35 +03:00 committed by Ondřej Budai
parent 5e8c022e6d
commit 648bf26fca

View file

@ -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."