@@ -18,84 +18,30 @@ jobs:
1818 history :
1919 name : Pull Request Body
2020 runs-on : ubuntu-latest
21- if : startsWith( github.event.pull_request.head.ref, 'release/')
21+ if : github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
2222 steps :
2323 - name : Pull Request Body
2424 uses : technote-space/pr-commit-body-action@v1
2525 with :
2626 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2727 EXCLUDE_MESSAGES : |
2828 trigger workflow
29- Update TOC
30- Update package version
29+ update TOC
30+ update package version
31+ update wp version
3132 TITLE : ' ## Changes'
33+ LINK_ISSUE_KEYWORD : ${{ (startsWith(github.event.pull_request.head.ref, 'release/') && 'closes') || '' }}
34+ FILTER_PR : true
3235
33- assignToProject :
34- name : Assign PullRequest to Project
36+ manageRelease :
37+ name : Manage release
3538 runs-on : ubuntu-latest
36- if : github.event.action == 'synchronize'
39+ if : github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.event.pull_request.head.ref, 'release/')
3740 steps :
38- - uses : actions/checkout@v2
39- - uses : technote-space/get-git-comment-action@v1
40- - name : Assign PullRequest to Project
41- if : contains(env.COMMIT_MESSAGE, 'trigger workflow')
42- uses : technote-space/create-project-card-action@v1
43- with :
44- PROJECT : Backlog
45- COLUMN : To do
46- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47- IGNORE_CONTEXT_CHECK : true
48-
49- assignAuthor :
50- name : Assign author to PR
51- runs-on : ubuntu-latest
52- if : github.event.action == 'synchronize'
53- steps :
54- - uses : actions/checkout@v2
55- - uses : technote-space/get-git-comment-action@v1
56- - name : Assign Author to PR
57- if : contains(env.COMMIT_MESSAGE, 'trigger workflow')
58- uses : technote-space/assign-author@v1
59- with :
60- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61- IGNORE_CONTEXT_CHECK : true
62-
63- addLabelsByBranch :
64- name : PR Labeler
65- runs-on : ubuntu-latest
66- if : github.event.action == 'synchronize'
67- steps :
68- - uses : actions/checkout@v2
69- - uses : technote-space/get-git-comment-action@v1
70- - name : PR Labeler
71- if : contains(env.COMMIT_MESSAGE, 'trigger workflow')
72- uses : technote-space/pr-labeler-action@v3
73- with :
74- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75- IGNORE_CONTEXT_CHECK : true
76-
77- checkVersion :
78- name : Check package version
79- runs-on : ubuntu-latest
80- if : github.event.action == 'synchronize' && startsWith(github.event.pull_request.head.ref, 'release/')
81- steps :
82- - name : Set running flag
83- run : echo "::set-env name=RUNNING::"
84- - uses : actions/checkout@v2
85- - uses : technote-space/get-git-comment-action@v1
86- - name : Set running flag
87- run : echo "::set-env name=RUNNING::1"
88- if : contains(env.COMMIT_MESSAGE, 'trigger workflow')
89- - name : Set running flag
90- run : |
91- if [[ ! -f package.json ]] || [[ $(< package.json jq -r '.version == null') == 'true' ]]; then
92- echo "::set-env name=RUNNING::"
93- fi
94-
95- - name : Check package version
96- uses : technote-space/package-version-check-action@v1
41+ - name : Manage release
42+ uses : technote-space/manage-release-action@v1
9743 with :
9844 GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
99- BRANCH_PREFIX : release/
100- IGNORE_CONTEXT_CHECK : true
101- if : env.RUNNING
45+ EXCLUDE_MESSAGES : |
46+ update package version
47+ update packages
0 commit comments