diff --git a/.github/workflows/scripts/create-orm-update-pull-request b/.github/workflows/scripts/create-orm-update-pull-request index 63f3d99..13d15ff 100755 --- a/.github/workflows/scripts/create-orm-update-pull-request +++ b/.github/workflows/scripts/create-orm-update-pull-request @@ -8,7 +8,7 @@ echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials echo echo "##[section]Check for existing pull request" -gh pr list -B ${BRANCH} -f '%H%n' | grep "^orm-update$" && { +gh pr list -B ${BRANCH} | grep "orm-update" && { echo Pull request already exists. Stopping here. exit } || { @@ -31,8 +31,7 @@ echo echo "##[section]Creating pull request" git push -f --set-upstream origin orm-update -gh pr create -B ${BRANCH} -H orm-update -f -m "ISPyB ORM schema update v${DATABASE_SCHEMA} - +gh pr create -B ${BRANCH} -H orm-update -t "ISPyB ORM schema update v${DATABASE_SCHEMA}" -b " This is an automated pull request to update the ISPyB ORM schema. Before merging this pull request you may want to