File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
name : CD
3
3
4
4
on :
5
- push :
5
+ pull_request :
6
+ types :
7
+ - closed
6
8
branches :
7
9
- main
8
10
paths :
9
11
- " src/**"
10
- workflow_dispatch :
11
12
12
13
jobs :
13
14
version-type :
15
+ name : Get version type
16
+ if : github.event.pull_request.merged == true
14
17
uses : ./.github/workflows/_version_type.yml
15
18
16
19
version-bump :
17
20
name : Version bump
21
+ if : github.event.pull_request.merged == true
18
22
runs-on : ubuntu-22.04
19
23
needs : version-type
20
24
outputs :
85
89
86
90
release :
87
91
name : GitHub release
92
+ if : github.event.pull_request.merged == true
88
93
runs-on : ubuntu-22.04
89
94
needs : version-bump
90
95
steps :
@@ -102,6 +107,7 @@ jobs:
102
107
103
108
deploy :
104
109
name : Deploy workflow-linter (v2)
110
+ if : github.event.pull_request.merged == true
105
111
runs-on : ubuntu-22.04
106
112
needs : version-bump
107
113
steps :
You can’t perform that action at this time.
0 commit comments