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