make github env variable check first as it is new home for ci
This commit is contained in:
parent
c42f0fd2e4
commit
fca2feaae8
1 changed files with 3 additions and 3 deletions
|
@ -25,10 +25,10 @@ clone() {
|
||||||
# First we check if GITHUB_HEAD_REF is defined,
|
# First we check if GITHUB_HEAD_REF is defined,
|
||||||
# Then we check if BUILDKITE_BRANCH is defined,
|
# Then we check if BUILDKITE_BRANCH is defined,
|
||||||
# if it isn't we can assume this is a Netlify build
|
# if it isn't we can assume this is a Netlify build
|
||||||
if [ -n "$BUILDKITE_BRANCH" ]; then
|
if [ -n "$GITHUB_HEAD_REF" ]; then
|
||||||
head=$BUILDKITE_BRANCH
|
|
||||||
elif [ -n "$GITHUB_HEAD_REF" ]; then
|
|
||||||
head=$GITHUB_HEAD_REF
|
head=$GITHUB_HEAD_REF
|
||||||
|
elif [ -n "$BUILDKITE_BRANCH" ]; then
|
||||||
|
head=$BUILDKITE_BRANCH
|
||||||
else
|
else
|
||||||
# Netlify doesn't give us info about the fork so we have to get it from GitHub API
|
# Netlify doesn't give us info about the fork so we have to get it from GitHub API
|
||||||
apiEndpoint="https://api.github.com/repos/matrix-org/matrix-react-sdk/pulls/"
|
apiEndpoint="https://api.github.com/repos/matrix-org/matrix-react-sdk/pulls/"
|
||||||
|
|
Loading…
Reference in a new issue