Skip to content

Commit 3188e45

Browse files
authored
if PR, checkout change_branch
1 parent 7ff15ee commit 3188e45

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/frontend-release.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ git config --global user.name "${GIT_USERNAME}"
3232
git config --global user.email "${GITHUB_USER}@users.noreply.github.com"
3333

3434
git clone $GIT_SRC
35-
35+
cd $GIT_NAME
36+
if [ -n "$GIT_CHANGE_ID" ] && [[ "$GIT_CHANGE_TARGET" == "master" ]] && [[ "$GIT_CHANGE_BRANCH" == "develop" ]]; then
37+
git checkout $GIT_CHANGE_BRANCH
38+
fi
39+
cd ..
40+
3641
if [ ! -f $GIT_NAME/package.json ]; then
3742
rm -rf $GIT_NAME
3843
echo "Not a javascript package, the check was wrong"

0 commit comments

Comments
 (0)