File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 11
11
workflow_dispatch :
12
12
13
13
env :
14
- DEV_BRANCH : develop
14
+ SOURCE_BRANCH : master
15
+ TAGRET_BRANCH : develop
15
16
16
17
jobs :
17
18
main :
29
30
id : open-pr
30
31
uses : repo-sync/pull-request@v2
31
32
with :
32
- destination_branch : ${{ env.DEV_BRANCH }}
33
- pr_title : ' [Gitflow] Merge ${{ github.ref_name }} into ${{ env.DEV_BRANCH }}'
34
- pr_body : ' Merge ${{ github.ref_name }} branch into ${{ env.DEV_BRANCH }}'
33
+ source_branch : ${{ env.SOURCE_BRANCH }}
34
+ destination_branch : ${{ env.TARGET_BRANCH }}
35
+ pr_title : ' [Gitflow] Merge ${{ env.SOURCE_BRANCH }} into ${{ env.TARGET_BRANCH }}'
36
+ pr_body : ' Merge ${{ env.SOURCE_BRANCH }} branch into ${{ env.TARGET_BRANCH }}'
35
37
pr_label : ' Dev: Gitflow'
36
38
37
39
# https://github.com/marketplace/actions/enable-pull-request-automerge
44
46
45
47
# https://github.com/marketplace/actions/auto-approve
46
48
- name : Auto approve PR
49
+ # Always skip this for now, until we got a proper bot setup
50
+ if : steps.open-pr.outputs.pr_number != '' || 1 == 2
47
51
uses : hmarr/auto-approve-action@v3
48
52
with :
49
53
pull-request-number : ${{ steps.open-pr.outputs.pr_number }}
Original file line number Diff line number Diff line change 1
1
name : Gitflow - Sync develop into master
2
2
on :
3
3
push :
4
- branches :
5
- - develop
6
- paths :
7
- # We want to trigger this when ONLY the changlog is changed on develop, but nothing else
8
- - ' CHANGELOG.md'
9
- - ' !packages'
10
- - ' !**/*.js'
11
- - ' !**/*.json'
12
- - ' !**/*.ts'
13
- workflow_dispatch :
4
+ pull_request :
5
+ - types : [closed]
6
+ - branches :
7
+ - ' develop'
14
8
15
9
env :
16
10
MAIN_BRANCH : master
19
13
main :
20
14
name : Create PR develop->master
21
15
runs-on : ubuntu-20.04
16
+ if : |
17
+ github.event.pull_request.merged == true
18
+ && startsWith(github.event.pull_request.title, "meta(changelog):")
22
19
permissions :
23
20
pull-requests : write
24
21
contents : write
46
43
47
44
# https://github.com/marketplace/actions/auto-approve
48
45
- name : Auto approve PR
46
+ # Always skip this for now, until we got a proper bot setup
47
+ if : steps.open-pr.outputs.pr_number != '' || 1 == 2
49
48
uses : hmarr/auto-approve-action@v3
50
49
with :
51
50
pull-request-number : ${{ steps.open-pr.outputs.pr_number }}
You can’t perform that action at this time.
0 commit comments