Skip to content

Commit c2a0346

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

File tree

2 files changed

+34
-3
lines changed

2 files changed

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

+31-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,44 @@ 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+
if: steps.filter.outputs.values == 'true'
58+
uses: envoy/[email protected]
59+
with:
60+
version: 1.11.0
61+
- name: Update Helm Docs
62+
if: steps.filter.outputs.values == 'true'
63+
run: |
64+
set -ex
65+
cd deploy/charts/version-checker
66+
helm-docs
67+
5168
- name: Detect any Local Changes
5269
uses: dorny/paths-filter@v3
5370
id: filter
@@ -58,26 +75,38 @@ jobs:
5875
- 'Makefile'
5976
- 'deploy/yaml/deploy.yaml'
6077
- 'deploy/charts/version-checker/Chart.yaml'
78+
6179
- name: Commit files
6280
if: steps.filter.outputs.versions == 'true'
6381
run: |
6482
git config --local user.email "github-actions[bot]@users.noreply.github.com"
6583
git config --local user.name "github-actions[bot]"
6684
git status
6785
git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} "
86+
6887
- name: Push changes
6988
if: steps.filter.outputs.versions == 'true'
7089
uses: ad-m/[email protected]
7190
with:
7291
github_token: ${{ secrets.GITHUB_TOKEN }}
7392
branch: ${{ github.ref_name }}
93+
94+
- name: Build Changelog
95+
id: github_release
96+
uses: mikepenz/release-changelog-builder-action@v5
97+
98+
7499
- name: Create Release PR
75100
uses: devops-infra/[email protected]
76101
with:
77102
github_token: ${{ secrets.GITHUB_TOKEN }}
78103
target_branch: main
79104
title: "Release ${{steps.release_number.outputs.substring}}"
80-
body: "**Automated Release Pull Request**"
105+
body: |-
106+
"**Automated Release Pull Request**
107+
108+
## Change log:
109+
${{steps.github_release.outputs.changelog}}
81110
draft: false
82111
get_diff: false
83112
allow_no_diff: false

0 commit comments

Comments
 (0)