55 branches :
66 - " release-v*"
77 tags :
8- - " *"
8+ - " v *"
99
1010concurrency :
1111 group : ${{ github.workflow }}-${{ github.ref }}
@@ -27,27 +27,42 @@ jobs:
2727 with :
2828 value : ${{github.ref_name}}
2929 index_of_str : " release-"
30+
3031 - name : Find and Replace Helm Chart Version
3132 uses : jacobtomlinson/gha-find-replace@v3
3233 with :
3334 find : ' v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?'
3435 replace : " ${{steps.release_number.outputs.substring}}"
3536 include : " deploy/charts/version-checker/Chart.yaml"
3637 regex : true
38+
3739 - name : Find and Replace Kubernetes Manifests
3840 uses : jacobtomlinson/gha-find-replace@v3
3941 with :
4042 find : ' v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?'
4143 replace : " ${{steps.release_number.outputs.substring}}"
4244 include : " deploy/yaml/deploy.yaml"
4345 regex : true
46+
4447 - name : Find and Replace Makefile versions
4548 uses : jacobtomlinson/gha-find-replace@v3
4649 with :
4750 find : ' v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?'
4851 replace : " ${{steps.release_number.outputs.substring}}"
4952 include : " Makefile"
5053 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+
5166 - name : Detect any Local Changes
5267 uses : dorny/paths-filter@v3
5368 id : filter
@@ -58,26 +73,39 @@ jobs:
5873 - 'Makefile'
5974 - 'deploy/yaml/deploy.yaml'
6075 - 'deploy/charts/version-checker/Chart.yaml'
76+ - 'deploy/charts/version-checker/README.md'
77+
6178 - name : Commit files
6279 if : steps.filter.outputs.versions == 'true'
6380 run : |
6481 git config --local user.email "github-actions[bot]@users.noreply.github.com"
6582 git config --local user.name "github-actions[bot]"
6683 git status
6784 git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} "
85+
6886 - name : Push changes
6987 if : steps.filter.outputs.versions == 'true'
70887189 with :
7290 github_token : ${{ secrets.GITHUB_TOKEN }}
7391 branch : ${{ github.ref_name }}
92+
93+ - name : Build Changelog
94+ id : github_release
95+ uses : mikepenz/release-changelog-builder-action@v5
96+
97+
7498 - name : Create Release PR
7599 uses :
devops-infra/[email protected] 76100 with :
77101 github_token : ${{ secrets.GITHUB_TOKEN }}
78102 target_branch : main
79103 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}}
81109 draft : false
82110 get_diff : false
83111 allow_no_diff : false
0 commit comments