Skip to content

Commit

Permalink
Merge pull request #1970 from sanger/sh51/update-pr-create-action
Browse files Browse the repository at this point in the history
Bug fixes for develop-to-master PR creation
  • Loading branch information
StephenHulme authored Oct 1, 2024
2 parents b8b52c1 + ea5f24f commit dcadd3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check_release_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
name: Check release version

on:
workflow_dispatch:
pull_request:
branches:
- master
types:
# defaults
- opened
- synchronize
- reopened
# custom
- ready_for_review # required for Github-created PRs

jobs:
check:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/create_release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- develop
- sh51/create-release-pr-action
jobs:
pull_request:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,7 +55,7 @@ jobs:
EXISTING_PR=$(gh pr list --base master --head develop --json number --jq '.[0].number')
if [ -z "$EXISTING_PR" ]; then
gh pr create --base master --head develop --title "$PR_TITLE" --body "$PR_BODY"
gh pr create --base master --head develop --title "$PR_TITLE" --body "$PR_BODY" --draft
else
gh pr edit "$EXISTING_PR" --body "$PR_BODY"
fi

0 comments on commit dcadd3c

Please sign in to comment.