wait on the CI to complete

This commit is contained in:
Earl Warren 2023-10-13 15:30:22 +02:00
parent 63ccad04bc
commit df08855107
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 3 additions and 3 deletions

View file

@ -62,6 +62,7 @@ function create_pull_request() {
git add .
git commit -m 'update'
git push origin branch1
git rev-parse HEAD > ../originrepo.sha
)
forgejo-curl.sh api_json --data-raw '{"title":"PR","base":"main","head":"branch1"}' ${options[url]}/api/v1/repos/user1/originrepo/pulls
@ -91,8 +92,7 @@ function run() {
create_pull_request
echo do something
wait_success ${options[url]}/api/v1/repos/user1/originrepo $(cat $TMPDIR/originrepo.sha)
}
function main() {