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,42 @@ 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
+
58
+ with :
59
+ version : 1.11.0
60
+ - name : Update Helm Docs
61
+ run : |
62
+ set -ex
63
+ cd deploy/charts/version-checker
64
+ helm-docs
65
+
51
66
- name : Detect any Local Changes
52
67
uses : dorny/paths-filter@v3
53
68
id : filter
@@ -58,26 +73,39 @@ jobs:
58
73
- 'Makefile'
59
74
- 'deploy/yaml/deploy.yaml'
60
75
- 'deploy/charts/version-checker/Chart.yaml'
76
+ - 'deploy/charts/version-checker/README.md'
77
+
61
78
- name : Commit files
62
79
if : steps.filter.outputs.versions == 'true'
63
80
run : |
64
81
git config --local user.email "github-actions[bot]@users.noreply.github.com"
65
82
git config --local user.name "github-actions[bot]"
66
83
git status
67
84
git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} "
85
+
68
86
- name : Push changes
69
87
if : steps.filter.outputs.versions == 'true'
70
88
71
89
with :
72
90
github_token : ${{ secrets.GITHUB_TOKEN }}
73
91
branch : ${{ github.ref_name }}
92
+
93
+ - name : Build Changelog
94
+ id : github_release
95
+ uses : mikepenz/release-changelog-builder-action@v5
96
+
97
+
74
98
- name : Create Release PR
75
99
uses :
devops-infra/[email protected]
76
100
with :
77
101
github_token : ${{ secrets.GITHUB_TOKEN }}
78
102
target_branch : main
79
103
title : " Release ${{steps.release_number.outputs.substring}}"
80
- body : " **Automated Release Pull Request**"
104
+ body : |-
105
+ "**Automated Release Pull Request**
106
+
107
+ ## Change log:
108
+ ${{steps.github_release.outputs.changelog}}
81
109
draft : false
82
110
get_diff : false
83
111
allow_no_diff : false
0 commit comments