Skip to content

Commit

Permalink
if PR, checkout change_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinab25 authored Jun 27, 2022
1 parent 7ff15ee commit 3188e45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/frontend-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ git config --global user.name "${GIT_USERNAME}"
git config --global user.email "${GITHUB_USER}@users.noreply.github.com"

git clone $GIT_SRC

cd $GIT_NAME
if [ -n "$GIT_CHANGE_ID" ] && [[ "$GIT_CHANGE_TARGET" == "master" ]] && [[ "$GIT_CHANGE_BRANCH" == "develop" ]]; then
git checkout $GIT_CHANGE_BRANCH
fi
cd ..

if [ ! -f $GIT_NAME/package.json ]; then
rm -rf $GIT_NAME
echo "Not a javascript package, the check was wrong"
Expand Down

0 comments on commit 3188e45

Please sign in to comment.