File tree Expand file tree Collapse file tree 5 files changed +22
-6
lines changed Expand file tree Collapse file tree 5 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 10
10
tag :
11
11
name : Add version tag
12
12
runs-on : ubuntu-latest
13
- if : github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
13
+ if : github.event.pull_request.merged == true && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/')
14
14
steps :
15
15
- name : Get version
16
16
run : echo "::set-env name=TAG_NAME::${HEAD_REF#release/}"
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ name: Pull Request opened
6
6
7
7
jobs :
8
8
assignToProject :
9
+ if : github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
9
10
name : Assign PullRequest to Project
10
11
runs-on : ubuntu-latest
11
12
steps :
37
38
checkVersion :
38
39
name : Check package version
39
40
runs-on : ubuntu-latest
40
- if : startsWith(github.event.pull_request.head.ref, 'release/')
41
+ if : github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/')
41
42
steps :
42
43
- name : Set running flag
43
44
run : echo "::set-env name=RUNNING::1"
Original file line number Diff line number Diff line change @@ -18,16 +18,29 @@ jobs:
18
18
history :
19
19
name : Pull Request Body
20
20
runs-on : ubuntu-latest
21
- if : startsWith(github.event.pull_request.head.ref, 'release/') || github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
21
+ if : github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
22
22
steps :
23
23
- name : Pull Request Body
24
24
uses : technote-space/pr-commit-body-action@v1
25
25
with :
26
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
27
EXCLUDE_MESSAGES : |
28
28
trigger workflow
29
- Update TOC
30
- Update package version
29
+ update TOC
30
+ update package version
31
31
TITLE : ' ## Changes'
32
32
LINK_ISSUE_KEYWORD : ${{ (startsWith(github.event.pull_request.head.ref, 'release/') && 'closes') || '' }}
33
33
FILTER_PR : true
34
+
35
+ manageRelease :
36
+ name : Manage release
37
+ runs-on : ubuntu-latest
38
+ if : github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/')
39
+ steps :
40
+ - name : Manage release
41
+ uses : technote-space/manage-release-action@v1
42
+ with :
43
+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
44
+ EXCLUDE_MESSAGES : |
45
+ update package version
46
+ update packages
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ name: TOC Generator
6
6
7
7
jobs :
8
8
toc :
9
+ if : github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
9
10
name : TOC Generator
10
11
runs-on : ubuntu-latest
11
12
steps :
Original file line number Diff line number Diff line change 26
26
PR_TITLE : ' chore: update npm dependencies (${PR_MERGE_REF})'
27
27
PR_DEFAULT_BRANCH_PREFIX : release/
28
28
PR_DEFAULT_BRANCH_NAME : ${PATCH_VERSION}
29
- PR_DEFAULT_BRANCH_TITLE : release/ ${PATCH_VERSION}
29
+ PR_DEFAULT_BRANCH_TITLE : ' feat: release ${PATCH_VERSION}'
30
30
TARGET_BRANCH_PREFIX : release/
31
+ AUTO_MERGE_THRESHOLD_DAYS : 30
You can’t perform that action at this time.
0 commit comments