File tree 3 files changed +31
-31
lines changed
3 files changed +31
-31
lines changed Original file line number Diff line number Diff line change @@ -13,31 +13,23 @@ jobs:
13
13
pull-requests : write
14
14
15
15
steps :
16
- - name : Checkout
17
- uses : actions/checkout@v3
16
+ - uses : actions/checkout@v4
18
17
with :
19
- fetch-depth : 0
20
- token : ${{ secrets.GITHUB_TOKEN }}
18
+ ref : release
21
19
22
- - name : Generate GitHub App Token
23
- id : generate-token
24
- uses : tibdex/github-app-token@v1
25
- with :
26
- app_id : ${{ secrets.APP_ID }}
27
- private_key : ${{ secrets.APP_PRIVATE_KEY }}
28
- installation_id : ${{ secrets.APP_INSTALLATION_ID }}
20
+ - name : Reset main branch
21
+ run : |
22
+ git fetch origin main:main
23
+ git reset --hard main
29
24
30
25
- name : Create Pull Request
31
- uses : peter-evans/create-pull-request@v5
26
+ uses : peter-evans/create-pull-request@v7
32
27
with :
33
- token : ${{ steps.generate-token.outputs.token }}
34
- base : main
35
- branch : release
28
+ branch : main-to-release
29
+ commit-message : ' chore: sync main to release'
36
30
title : ' chore: sync main to release'
37
31
body : |
38
- 이 PR은 메인 브랜치의 변경사항을 릴리즈 브랜치로 동기화합니다.
32
+ 이 PR은 main 브랜치의 변경사항을 release 브랜치로 동기화합니다.
39
33
40
- 이 PR이 머지되면 릴리즈 워크플로우가 자동으로 트리거됩니다.
41
- labels : |
42
- automated-pr
43
- sync-to-release
34
+ 이 PR이 머지되면 release 워크플로우가 자동으로 트리거됩니다.
35
+ delete-branch : true
Original file line number Diff line number Diff line change 59
59
uses : peter-evans/create-pull-request@v5
60
60
with :
61
61
token : ${{ secrets.GITHUB_TOKEN }}
62
- branch : release
63
- base : main
62
+ branch : main
63
+ base : release
64
64
title : ' chore: update version to latest release'
65
65
body : |
66
66
This PR updates the main branch with the latest version information from the release branch.
Original file line number Diff line number Diff line change 15
15
id-token : write
16
16
steps :
17
17
- name : Checkout
18
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
19
19
with :
20
20
fetch-depth : 0
21
21
@@ -50,18 +50,26 @@ jobs:
50
50
run : |
51
51
pnpm dlx semantic-release
52
52
53
- - name : Create Pull Request to main
53
+ - uses : actions/checkout@v4
54
+ with :
55
+ ref : main
56
+
57
+ - name : Reset main branch
58
+ run : |
59
+ git fetch origin release:release
60
+ git reset --hard release
61
+ - name : Create Pull Request
54
62
if : success()
55
63
uses : peter-evans/create-pull-request@v5
56
64
with :
57
- token : ${{ secrets.GITHUB_TOKEN }}
58
- branch : release
59
- base : main
65
+ branch : release-to-main
66
+ commit-message : ' chore: update version to latest release'
60
67
title : ' chore: update version to latest release'
61
68
body : |
62
- This PR updates the main branch with the latest version information from the release branch .
69
+ 이 PR은 release 브랜치의 최신 버전 정보로 main 브랜치를 업데이트합니다 .
63
70
64
- - Updates package.json version
65
- - Updates CHANGELOG.md
71
+ - package.json 버전 업데이트
72
+ - CHANGELOG.md 업데이트
66
73
67
- This PR was automatically created by the release workflow.
74
+ 이 PR은 release 워크플로우에 의해 자동으로 생성되었습니다.
75
+ delete-branch : true
You can’t perform that action at this time.
0 commit comments