-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a better/more indepth changelog
- Loading branch information
1 parent
9fb469b
commit df534ae
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
branches: | ||
- "release-v*" | ||
tags: | ||
- "*" | ||
- "v*" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -27,27 +27,42 @@ jobs: | |
with: | ||
value: ${{github.ref_name}} | ||
index_of_str: "release-" | ||
|
||
- name: Find and Replace Helm Chart Version | ||
uses: jacobtomlinson/gha-find-replace@v3 | ||
with: | ||
find: 'v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?' | ||
replace: "${{steps.release_number.outputs.substring}}" | ||
include: "deploy/charts/version-checker/Chart.yaml" | ||
regex: true | ||
|
||
- name: Find and Replace Kubernetes Manifests | ||
uses: jacobtomlinson/gha-find-replace@v3 | ||
with: | ||
find: 'v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?' | ||
replace: "${{steps.release_number.outputs.substring}}" | ||
include: "deploy/yaml/deploy.yaml" | ||
regex: true | ||
|
||
- name: Find and Replace Makefile versions | ||
uses: jacobtomlinson/gha-find-replace@v3 | ||
with: | ||
find: 'v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?' | ||
replace: "${{steps.release_number.outputs.substring}}" | ||
include: "Makefile" | ||
regex: true | ||
|
||
|
||
- name: Install Helm Docs | ||
uses: envoy/[email protected] | ||
with: | ||
version: 1.11.0 | ||
- name: Update Helm Docs | ||
run: | | ||
set -ex | ||
cd deploy/charts/version-checker | ||
helm-docs | ||
- name: Detect any Local Changes | ||
uses: dorny/paths-filter@v3 | ||
id: filter | ||
|
@@ -58,26 +73,38 @@ jobs: | |
- 'Makefile' | ||
- 'deploy/yaml/deploy.yaml' | ||
- 'deploy/charts/version-checker/Chart.yaml' | ||
- name: Commit files | ||
if: steps.filter.outputs.versions == 'true' | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git status | ||
git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} " | ||
- name: Push changes | ||
if: steps.filter.outputs.versions == 'true' | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref_name }} | ||
|
||
- name: Build Changelog | ||
id: github_release | ||
uses: mikepenz/release-changelog-builder-action@v5 | ||
|
||
|
||
- name: Create Release PR | ||
uses: devops-infra/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
target_branch: main | ||
title: "Release ${{steps.release_number.outputs.substring}}" | ||
body: "**Automated Release Pull Request**" | ||
body: |- | ||
"**Automated Release Pull Request** | ||
## Change log: | ||
${{steps.github_release.outputs.changelog}} | ||
draft: false | ||
get_diff: false | ||
allow_no_diff: false | ||
|