File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ echo "Last commited SHA: ${last_sha}"
3333up_to_date=$( git_cmd git rev-list origin/${INPUT_BRANCH} | grep ${last_sha} | wc -l)
3434pr_branch=" up-${last_sha} "
3535
36+ hub pr list
3637pr_exists=$( git_cmd hub pr list | grep ${last_sha} | wc -l)
38+
3739if [[ " ${pr_exists} " -gt 0 ]]; then
3840 echo " PR Already exists!!!"
3941 git_cmd hub pr list | grep ${last_sha}
4345if [[ " ${up_to_date} " -eq 0 ]]; then
4446 git_cmd git checkout -b " ${pr_branch} " --track " upstream/${INPUT_UPSTREAM_BRANCH} "
4547 git_cmd git push -u origin " ${pr_branch} "
48+ git_cmd git remote remove upstream
4649 git_cmd hub pull-request -b " ${INPUT_BRANCH} " -h " ${pr_branch} " -l " ${INPUT_PR_LABELS} " -a " ${GITHUB_ACTOR} " -m " \" Upstream: ${last_sha} \" "
4750else
4851 echo " Branch up-to-date"
You can’t perform that action at this time.
0 commit comments