5
5
branches :
6
6
- " release-v*"
7
7
tags :
8
- - " *"
8
+ - " v *"
9
9
10
10
concurrency :
11
11
group : ${{ github.workflow }}-${{ github.ref }}
@@ -27,27 +27,44 @@ jobs:
27
27
with :
28
28
value : ${{github.ref_name}}
29
29
index_of_str : " release-"
30
+
30
31
- name : Find and Replace Helm Chart Version
31
32
uses : jacobtomlinson/gha-find-replace@v3
32
33
with :
33
34
find : ' v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?'
34
35
replace : " ${{steps.release_number.outputs.substring}}"
35
36
include : " deploy/charts/version-checker/Chart.yaml"
36
37
regex : true
38
+
37
39
- name : Find and Replace Kubernetes Manifests
38
40
uses : jacobtomlinson/gha-find-replace@v3
39
41
with :
40
42
find : ' v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?'
41
43
replace : " ${{steps.release_number.outputs.substring}}"
42
44
include : " deploy/yaml/deploy.yaml"
43
45
regex : true
46
+
44
47
- name : Find and Replace Makefile versions
45
48
uses : jacobtomlinson/gha-find-replace@v3
46
49
with :
47
50
find : ' v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?'
48
51
replace : " ${{steps.release_number.outputs.substring}}"
49
52
include : " Makefile"
50
53
regex : true
54
+
55
+
56
+ - name : Install Helm Docs
57
+ if : steps.filter.outputs.values == 'true'
58
+
59
+ with :
60
+ version : 1.11.0
61
+ - name : Update Helm Docs
62
+ if : steps.filter.outputs.values == 'true'
63
+ run : |
64
+ set -ex
65
+ cd deploy/charts/version-checker
66
+ helm-docs
67
+
51
68
- name : Detect any Local Changes
52
69
uses : dorny/paths-filter@v3
53
70
id : filter
@@ -58,26 +75,38 @@ jobs:
58
75
- 'Makefile'
59
76
- 'deploy/yaml/deploy.yaml'
60
77
- 'deploy/charts/version-checker/Chart.yaml'
78
+
61
79
- name : Commit files
62
80
if : steps.filter.outputs.versions == 'true'
63
81
run : |
64
82
git config --local user.email "github-actions[bot]@users.noreply.github.com"
65
83
git config --local user.name "github-actions[bot]"
66
84
git status
67
85
git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} "
86
+
68
87
- name : Push changes
69
88
if : steps.filter.outputs.versions == 'true'
70
89
71
90
with :
72
91
github_token : ${{ secrets.GITHUB_TOKEN }}
73
92
branch : ${{ github.ref_name }}
93
+
94
+ - name : Build Changelog
95
+ id : github_release
96
+ uses : mikepenz/release-changelog-builder-action@v5
97
+
98
+
74
99
- name : Create Release PR
75
100
uses :
devops-infra/[email protected]
76
101
with :
77
102
github_token : ${{ secrets.GITHUB_TOKEN }}
78
103
target_branch : main
79
104
title : " Release ${{steps.release_number.outputs.substring}}"
80
- body : " **Automated Release Pull Request**"
105
+ body : |-
106
+ "**Automated Release Pull Request**
107
+
108
+ ## Change log:
109
+ ${{steps.github_release.outputs.changelog}}
81
110
draft : false
82
111
get_diff : false
83
112
allow_no_diff : false
0 commit comments