File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,18 @@ jobs:
11
11
if : contains(github.event.head_commit.message, 'fix!:')
12
12
steps :
13
13
- uses : actions/checkout@v3
14
- - run : |
15
- PR_NEXT=$(gh pr create --base next --head main --title "chore: apply quick fix from main" --output json | jq -r '.number')
16
- gh pr review $PR_NEXT --approve --body "auto-approved quick fix"
17
- gh pr merge $PR_NEXT --auto --merge
18
- PR_DEV=$(gh pr create --base development --head main --title "chore: apply quick fix from main" --output json | jq -r '.number')
19
- gh pr review $PR_DEV --approve --body "auto-approved quick fix"
20
- gh pr merge $PR_DEV --auto --merge
14
+ - name : Install latest GitHub CLI
15
+ run : |
16
+ brew install gh
17
+ - name : Create and merge PRs
18
+ run : |
19
+ PR_NEXT_URL=$(gh pr create --base next --head main --title "chore: apply quick fix from main")
20
+ PR_NEXT_NUMBER=$(echo $PR_NEXT_URL | grep -o '[0-9]\+$')
21
+ gh pr review $PR_NEXT_NUMBER --approve --body "auto-approved quick fix"
22
+ gh pr merge $PR_NEXT_NUMBER --auto --merge
23
+ PR_DEV_URL=$(gh pr create --base development --head main --title "chore: apply quick fix from main")
24
+ PR_DEV_NUMBER=$(echo $PR_DEV_URL | grep -o '[0-9]\+$')
25
+ gh pr review $PR_DEV_NUMBER --approve --body "auto-approved quick fix"
26
+ gh pr merge $PR_DEV_NUMBER --auto --merge
21
27
env :
22
28
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments