@@ -14,10 +14,17 @@ jobs:
14
14
- name : Checkout repository
15
15
16
16
17
+ - name : Download labels' config
18
+ shell : bash
19
+ run : |
20
+ mkdir -p .tmp
21
+ curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/.github/labels.yml -o .tmp/labels.yml
22
+
17
23
- name : Update labels - dry run
18
24
19
25
with :
20
26
github-token : ${{ secrets.GITHUB_TOKEN }}
27
+ yaml-file : .tmp/labels.yml
21
28
dry-run : true
22
29
23
30
lint :
@@ -59,64 +66,70 @@ jobs:
59
66
with :
60
67
fetch-depth : 0
61
68
69
+ - name : Download Pull Request template
70
+ shell : bash
71
+ run : |
72
+ mkdir -p .tmp
73
+ curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md -o .tmp/PULL_REQUEST_TEMPLATE.md
74
+
62
75
- name : Create pull request - bugfix (conditional)
63
76
if : startsWith(github.ref, 'refs/heads/bugfix')
64
- uses : devops-infra/action-pull-request@master
77
+ uses : devops-infra/action-pull-request@0.4
65
78
with :
66
79
github_token : ${{ secrets.GITHUB_TOKEN }}
67
80
assignee : ${{ github.actor }}
68
81
label : bugfix
69
- template : .github /PULL_REQUEST_TEMPLATE.md
82
+ template : .tmp /PULL_REQUEST_TEMPLATE.md
70
83
get_diff : true
71
84
72
85
- name : Create pull request - dependency (conditional)
73
86
if : startsWith(github.ref, 'refs/heads/dependency')
74
- uses : devops-infra/action-pull-request@master
87
+ uses : devops-infra/action-pull-request@0.4
75
88
with :
76
89
github_token : ${{ secrets.GITHUB_TOKEN }}
77
90
assignee : ${{ github.actor }}
78
91
label : dependency
79
- template : .github /PULL_REQUEST_TEMPLATE.md
92
+ template : .tmp /PULL_REQUEST_TEMPLATE.md
80
93
get_diff : true
81
94
82
95
- name : Create pull request - documentation (conditional)
83
96
if : startsWith(github.ref, 'refs/heads/documentation')
84
- uses : devops-infra/action-pull-request@master
97
+ uses : devops-infra/action-pull-request@0.4
85
98
with :
86
99
github_token : ${{ secrets.GITHUB_TOKEN }}
87
100
assignee : ${{ github.actor }}
88
101
label : documentation
89
- template : .github /PULL_REQUEST_TEMPLATE.md
102
+ template : .tmp /PULL_REQUEST_TEMPLATE.md
90
103
get_diff : true
91
104
92
105
- name : Create pull request - feature (conditional)
93
106
if : startsWith(github.ref, 'refs/heads/feature')
94
- uses : devops-infra/action-pull-request@master
107
+ uses : devops-infra/action-pull-request@0.4
95
108
with :
96
109
github_token : ${{ secrets.GITHUB_TOKEN }}
97
110
assignee : ${{ github.actor }}
98
111
label : feature
99
- template : .github /PULL_REQUEST_TEMPLATE.md
112
+ template : .tmp /PULL_REQUEST_TEMPLATE.md
100
113
get_diff : true
101
114
102
115
- name : Create pull request - test (conditional)
103
116
if : startsWith(github.ref, 'refs/heads/test')
104
- uses : devops-infra/action-pull-request@master
117
+ uses : devops-infra/action-pull-request@0.4
105
118
with :
106
119
github_token : ${{ secrets.GITHUB_TOKEN }}
107
120
assignee : ${{ github.actor }}
108
121
reviewer : ${{ github.actor }}
109
122
label : test
110
- template : .github /PULL_REQUEST_TEMPLATE.md
123
+ template : .tmp /PULL_REQUEST_TEMPLATE.md
111
124
draft : true
112
125
get_diff : true
113
126
114
127
- name : Create pull request - other (conditional)
115
128
if : " !startsWith(github.ref, 'refs/heads/bugfix') && !startsWith(github.ref, 'refs/heads/dependabot') && !startsWith(github.ref, 'refs/heads/dependency') && !startsWith(github.ref, 'refs/heads/documentation') && !startsWith(github.ref, 'refs/heads/feature') && !startsWith(github.ref, 'refs/heads/test')"
116
- uses : devops-infra/action-pull-request@master
129
+ uses : devops-infra/action-pull-request@0.4
117
130
with :
118
131
github_token : ${{ secrets.GITHUB_TOKEN }}
119
132
assignee : ${{ github.actor }}
120
133
label : feature
121
- template : .github /PULL_REQUEST_TEMPLATE.md
134
+ template : .tmp /PULL_REQUEST_TEMPLATE.md
122
135
get_diff : true
0 commit comments