File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change 1
- name : release
1
+ name : Create a new release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ release_version :
7
+ type : string
8
+ description : ' The next version to release'
9
+ required : true
10
+ pull_request :
11
+ types : [closed]
12
+ branches :
13
+ - ' main'
2
14
3
- on : workflow_dispatch
4
-
5
15
jobs :
6
- release :
16
+ create_release_pr :
17
+ if : ${{ github.event_name == 'workflow_dispatch' }}
7
18
uses : datavisyn/github-workflows/.github/workflows/release-source.yml@main
8
- secrets : inherit
19
+ secrets : inherit
20
+ with :
21
+ release_version : ${{ inputs.release_version }}
22
+
23
+ post_merge_release :
24
+ if : ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'Release') }}
25
+ uses : datavisyn/github-workflows/.github/workflows/release-post-merge.yml@main
26
+ secrets : inherit
27
+ with :
28
+ pr_title : ${{ github.event.pull_request.title }}
29
+ pr_number : ${{ github.event.pull_request.number }}
30
+ repository_owner : ${{ github.repository_owner }}
31
+ repository_name : ${{ github.event.repository.name }}
You can’t perform that action at this time.
0 commit comments