Skip to content

Commit 6c7dcb8

Browse files
author
thomasmckay
authored
chore: correct git-chglog config (PROJQUAY-1468) (quay#728)
1 parent 4389112 commit 6c7dcb8

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

.chglog/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
title: CHANGELOG
55
repository_url: https://github.com/quay/quay
66
options:
7-
tag_sort_by: semver
7+
sort: semver
88
commits:
99
sort_by: Scope
1010
commit_groups:

.github/workflows/cut-release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
tags:
77
- v3.*
8-
workflow_dispatch: {} # This puts a button in the UI for testing.
98

109
jobs:
1110
release-archive:
@@ -32,15 +31,10 @@ jobs:
3231
- name: ChangeLog
3332
shell: bash
3433
run: |
35-
#if [ "${{ github.event_name }}" = workflow_dispatch ]; then
36-
# echo "workflow trigger, skipping"
37-
# touch changelog
38-
# exit 0
39-
#fi
40-
curl -o /tmp/git-chglog -L https://github.com/ldelossa/git-chglog/releases/download/v0.11.2-sortbysemver/linux.amd64.git-chglog
34+
curl -o /tmp/git-chglog -L https://github.com/git-chglog/git-chglog/releases/download/v0.14.0/linux.amd64.git-chglog
4135
chmod u+x /tmp/git-chglog
4236
echo "creating change log for tag: $TAG"
43-
/tmp/git-chglog --tag-filter-pattern "v3.*" "${TAG}" > changelog
37+
/tmp/git-chglog --tag-filter-pattern "v3.*" -o CHANGELOG.md v3.6.0-alpha.4..
4438
- name: Upload Release Archive
4539
uses: actions/upload-artifact@v2
4640
with:

.github/workflows/prepare-release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ jobs:
2626
fetch-depth: 0
2727
ref: ${{ github.event.inputs.branch }}
2828
- name: Changelog
29-
env:
30-
exe: /tmp/git-chlog
3129
run: |
32-
curl -o "${exe}" -fsSL\
33-
https://github.com/git-chglog/git-chglog/releases/download/0.9.1/git-chglog_linux_amd64
34-
chmod u+x "${exe}"
30+
curl -o /tmp/git-chglog.tar.gz -fsSL\
31+
https://github.com/git-chglog/git-chglog/releases/download/v0.14.0/git-chglog_0.14.0_linux_amd64.tar.gz
32+
tar xvf /tmp/git-chglog.tar.gz --directory /tmp
33+
chmod u+x /tmp/git-chglog
3534
echo "creating change log for tag: ${{ github.event.inputs.tag }}"
36-
"${exe}"\
37-
--next-tag "${{ github.event.inputs.tag }}"\
38-
-o CHANGELOG.md
35+
/tmp/git-chglog --tag-filter-pattern "v3.*" -o CHANGELOG.md v3.6.0-alpha.4..
3936
- name: Create Pull Request
4037
uses: peter-evans/create-pull-request@v3.5.1
4138
with:

0 commit comments

Comments
 (0)