Skip to content

Commit d0b047d

Browse files
authored
automate changelogs (#84)
1 parent b8241af commit d0b047d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/changelog_conf.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"template": "${{UNCATEGORIZED}}",
3+
"pr_template": "- ${{TITLE}}\n"
4+
}

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,24 @@ jobs:
1616
- name: Clone project
1717
uses: actions/checkout@v2
1818

19+
- name: Build changelog
20+
id: build_changelog
21+
uses: mikepenz/release-changelog-builder-action@v1
22+
with:
23+
configuration: .github/changelog_conf.json
24+
failOnError: true
25+
ignorePreReleases: true
26+
commitMode: true
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
1930
- name: Create release
2031
uses: softprops/action-gh-release@v1
2132
with:
22-
fail_on_unmatched_files: true
33+
body: ${{ steps.build_changelog.outputs.changelog }}
2334
files: |
2435
LICENSE
36+
fail_on_unmatched_files: true
2537
env:
2638
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2739

0 commit comments

Comments
 (0)