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,38 @@ jobs:
5873 - 'Makefile'
5974 - 'deploy/yaml/deploy.yaml'
6075 - 'deploy/charts/version-checker/Chart.yaml'
76+
6177 - name : Commit files
6278 if : steps.filter.outputs.versions == 'true'
6379 run : |
6480 git config --local user.email "github-actions[bot]@users.noreply.github.com"
6581 git config --local user.name "github-actions[bot]"
6682 git status
6783 git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} "
84+
6885 - name : Push changes
6986 if : steps.filter.outputs.versions == 'true'
70877188 with :
7289 github_token : ${{ secrets.GITHUB_TOKEN }}
7390 branch : ${{ github.ref_name }}
91+
92+ - name : Build Changelog
93+ id : github_release
94+ uses : mikepenz/release-changelog-builder-action@v5
95+
96+
7497 - name : Create Release PR
7598 uses :
devops-infra/[email protected] 7699 with :
77100 github_token : ${{ secrets.GITHUB_TOKEN }}
78101 target_branch : main
79102 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}}
81108 draft : false
82109 get_diff : false
83110 allow_no_diff : false
0 commit comments