Fix the pull request branch issues (#274)
This commit is contained in:
@@ -6,6 +6,10 @@ cd $(dirname $0)/..
|
||||
trap "rm -rf /scratch/*" exit
|
||||
|
||||
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
if [ -n "${DRONE_BRANCH}" ]; then
|
||||
git checkout -b ${DRONE_BRANCH}
|
||||
GIT_BRANCH=${DRONE_BRANCH}
|
||||
fi
|
||||
|
||||
if [ "$GIT_BRANCH" != "master" ]; then
|
||||
sed -i "s#master#$GIT_BRANCH#" ./scripts/repo.json
|
||||
|
||||
Reference in New Issue
Block a user