Skip to content

Commit 825426c

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

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-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

+30-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,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'
7088
uses: ad-m/[email protected]
7189
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

Comments
 (0)