Skip to content

Commit 44ac2d6

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

File tree

2 files changed

+24
-3
lines changed

2 files changed

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

+21-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,31 @@ 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+
5155
- name: Detect any Local Changes
5256
uses: dorny/paths-filter@v3
5357
id: filter
@@ -58,26 +62,41 @@ jobs:
5862
- 'Makefile'
5963
- 'deploy/yaml/deploy.yaml'
6064
- 'deploy/charts/version-checker/Chart.yaml'
65+
66+
- name: Trigger HelmDocs
67+
uses: ./.github/workflows/helm-docs.yaml
68+
6169
- name: Commit files
6270
if: steps.filter.outputs.versions == 'true'
6371
run: |
6472
git config --local user.email "github-actions[bot]@users.noreply.github.com"
6573
git config --local user.name "github-actions[bot]"
6674
git status
6775
git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} "
76+
6877
- name: Push changes
6978
if: steps.filter.outputs.versions == 'true'
7079
uses: ad-m/[email protected]
7180
with:
7281
github_token: ${{ secrets.GITHUB_TOKEN }}
7382
branch: ${{ github.ref_name }}
83+
84+
- name: Build Changelog
85+
id: github_release
86+
uses: mikepenz/release-changelog-builder-action@v5
87+
88+
7489
- name: Create Release PR
7590
uses: devops-infra/[email protected]
7691
with:
7792
github_token: ${{ secrets.GITHUB_TOKEN }}
7893
target_branch: main
7994
title: "Release ${{steps.release_number.outputs.substring}}"
80-
body: "**Automated Release Pull Request**"
95+
body: |-
96+
"**Automated Release Pull Request**
97+
98+
## Change log:
99+
${{steps.github_release.outputs.changelog}}
81100
draft: false
82101
get_diff: false
83102
allow_no_diff: false

0 commit comments

Comments
 (0)