fix: che-22646 use gh instead of hub
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>pull/604/head
parent
72f191bcda
commit
68d06f9fcc
|
|
@ -88,11 +88,10 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get update -y || true
|
||||
# install more dependencies
|
||||
sudo apt-get -y -q install wget curl bash git hub
|
||||
sudo apt-get -y -q install wget curl bash git
|
||||
java -version
|
||||
|
||||
# want git >=2.24, hub >=2
|
||||
hub --version # hub reports git version too
|
||||
git --version
|
||||
gh --version
|
||||
|
||||
# want >=5
|
||||
bash --version
|
||||
|
|
|
|||
|
|
@ -155,8 +155,7 @@ commitChangeOrCreatePR() {
|
|||
git checkout "${PR_BRANCH}"
|
||||
git pull origin "${PR_BRANCH}" || true
|
||||
git push origin "${PR_BRANCH}"
|
||||
lastCommitComment="$(git log -1 --pretty=%B)"
|
||||
hub pull-request -f -m "${lastCommitComment}" -b "${aBRANCH}" -h "${PR_BRANCH}"
|
||||
gh pr create -f -B "${aBRANCH}" -H "${PR_BRANCH}"
|
||||
fi
|
||||
set -e
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue