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