We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f114a89 commit 6deeed2Copy full SHA for 6deeed2
1 file changed
scripts/util/get-branch.sh
@@ -23,6 +23,10 @@ if [[ $GIT_CURRENT_BRANCH == "HEAD" ]]; then
23
if [[ ! -z "$TRAVIS" ]] && [[ "$GIT_BRANCH" == "HEAD" ]]; then
24
GIT_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
25
fi
26
+ # On Cloudflare pages, fall back to the CF git branch.
27
+ if [[ ! -z "$CF_PAGES" ]] && [[ "$GIT_BRANCH" == "HEAD" ]]; then
28
+ GIT_BRANCH=$CF_PAGES_BRANCH
29
+ fi
30
31
GIT_CURRENT_BRANCH=tmp/$(date +%s)
32
git checkout -b $GIT_CURRENT_BRANCH
0 commit comments