-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use an external action for generating a changelog
The generated changelog was not used, because it was not located in the chart directory. Releases should only include files commited in the repository, so avoid generatic a changelog file and instead use the GitHub API to generate notes automatically in the GitHub release.
- Loading branch information
1 parent
3932c8f
commit 9195298
Showing
2 changed files
with
1 addition
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -98,27 +98,14 @@ jobs: | |
if: github.event_name != 'pull_request' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# history is required to generate changelog | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Build release changelog | ||
id: github_release | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
configuration: '.github/changelog-config.json' | ||
outputFile: ${{ runner.temp }}/CHANGELOG.md | ||
- name: Inspect changelog | ||
run: cat ${{ runner.temp }}/CHANGELOG.md | ||
- name: Release charts | ||
uses: helm/[email protected] | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_RELEASE_NOTES_FILE: ${{ runner.temp }}/CHANGELOG.md | ||
CR_GENERATE_RELEASE_NOTES: true | ||
# If we didn't bump the chart version then we can skip the release | ||
CR_SKIP_EXISTING: true |