Skip to content

Commit df534ae

Browse files
committed
Create a better/more indepth changelog
1 parent 9fb469b commit df534ae

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

.github/workflows/helm-docs.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Generate Helm Docs
22
on:
3+
# Allow other workflows to trigger
4+
workflow_call:
35
push:
46
paths:
57
- '!*.md'
@@ -64,4 +66,4 @@ jobs:
6466
with:
6567
github_token: ${{ secrets.GITHUB_TOKEN }}
6668
branch: ${{ github.head_ref }}
67-
repository: ${{ github.event.pull_request.head.repo.full_name }}
69+
repository: ${{ github.event.pull_request.head.repo.full_name }}

.github/workflows/release.yaml

+29-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- "release-v*"
77
tags:
8-
- "*"
8+
- "v*"
99

1010
concurrency:
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+
uses: envoy/[email protected]
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'
7087
uses: ad-m/[email protected]
7188
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

Comments
 (0)