Skip to content

Commit

Permalink
cicd: sort changelog by semver
Browse files Browse the repository at this point in the history
Signed-off-by: ldelossa <ldelossa@redhat.com>
  • Loading branch information
ldelossa authored and ldelossa committed Mar 25, 2021
1 parent 7c4787b commit 0800ba4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ info:
title: CHANGELOG
repository_url: https://github.com/quay/clair
options:
tag_sort_by: semver
commits:
sort_by: Scope
commit_groups:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
touch changelog
exit 0
fi
curl -o git-chglog -L https://github.com/git-chglog/git-chglog/releases/download/0.9.1/git-chglog_linux_amd64
chmod u+x git-chglog
curl -o /tmp/git-chglog -L https://github.com/ldelossa/git-chglog/releases/download/v0.11.2-sortbysemver/linux.amd64.git-chglog
chmod u+x /tmp/git-chglog
echo "creating change log for tag: $TAG"
./git-chglog "${TAG}" > changelog
/tmp/git-chglog "${TAG}" > changelog
- name: Upload Release Archive
uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Changelog
shell: bash
run: |
curl -o /tmp/git-chglog -L https://github.com/git-chglog/git-chglog/releases/download/0.9.1/git-chglog_linux_amd64
curl -o /tmp/git-chglog -L https://github.com/ldelossa/git-chglog/releases/download/v0.11.2-sortbysemver/linux.amd64.git-chglog
chmod u+x /tmp/git-chglog
echo "creating change log for tag: ${{ github.event.inputs.tag }}"
/tmp/git-chglog --tag-filter-pattern "v4" --next-tag "${{ github.event.inputs.tag }}" -o CHANGELOG.md v4.0.0-alpha.2..
Expand Down

0 comments on commit 0800ba4

Please sign in to comment.