Skip to content

Commit

Permalink
Update create_release_pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
vinmassaro authored Feb 1, 2024
1 parent 2f19646 commit 480a027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/github/create_release_pull_request
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

set -eo pipefail

# If we aren't updating an existing pull request, create one to merge develop into master.
# If we aren't updating an existing pull request, create one to merge the release branch into master.
if [[ -z "$PR_NUMBER" ]]; then
pull_request_response=$(curl -s -H "Accept: application/vnd.github+json" \
-H "Authorization: token $ACCESS_TOKEN" \
-X POST -d '{"title": "Release", "head": "develop", "base": "master"}' \
-X POST -d "{'title': 'Release', 'head': $RELEASE_BRANCH, 'base': 'master'}" \
"https://api.github.com/repos/$REPO/pulls")

message=$(echo "$pull_request_response" | jq -r 'if has("errors") then .errors[].message else null end')
Expand Down

0 comments on commit 480a027

Please sign in to comment.