Skip to content

Commit

Permalink
change github action setup for git changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Jul 21, 2023
1 parent 02b8054 commit f692d7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ The changelog is automatically generated using [git-chglog](https://github.com/g
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end -}}
{{ end -}}

{{- if .MergeCommits }}
### Pull Requests
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@ jobs:
needs: find-charts-to-release
if: needs.find-charts-to-release.outputs.modified-charts-files
runs-on: ubuntu-latest
container: quay.io/git-chglog/git-chglog:0.15.3
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install main dependencies
run: |
apk add bash
- uses: actions/setup-git-chglog@v1
with:
git-chglog-version: "0.15.4"

- name: Generate charts changelog files
shell: bash
run: |
set -x
apk add git grep yq
add-apt-repository ppa:rmescandon/yq
apt update && apt install yq -y
# TODO: Bundle all of that logic in a Github Action to make it easy to share.
for chart_file in ${{ needs.find-charts-to-release.outputs.modified-charts-files }}; do
Expand Down

0 comments on commit f692d7e

Please sign in to comment.