File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Create Fix PRs
2
+
2
3
on :
3
4
push :
4
5
branches : [main]
6
+
5
7
permissions :
6
8
contents : write
7
9
pull-requests : write
10
+
8
11
jobs :
9
12
create-prs :
10
13
runs-on : macos-latest
11
14
if : contains(github.event.head_commit.message, 'fix!:')
12
15
steps :
13
16
- uses : actions/checkout@v3
17
+
14
18
- name : Install latest GitHub CLI
15
19
run : |
16
20
brew install gh
21
+
17
22
- name : Create and merge PRs
18
23
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
24
+ PR_NEXT_URL=$(gh pr create --base next --head main --fill)
25
+ PR_NEXT_NUMBER=$(echo "$PR_NEXT_URL" | grep -o '[0-9]\+$')
26
+ gh pr review "$PR_NEXT_NUMBER" --approve --body "auto-approved quick fix"
27
+ gh pr merge "$PR_NEXT_NUMBER" --auto --merge
28
+
29
+ PR_DEV_URL=$(gh pr create --base development --head main --fill)
30
+ PR_DEV_NUMBER=$(echo "$PR_DEV_URL" | grep -o '[0-9]\+$')
31
+ gh pr review "$PR_DEV_NUMBER" --approve --body "auto-approved quick fix"
32
+ gh pr merge "$PR_DEV_NUMBER" --auto --merge
27
33
env :
28
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments