From d0b047d1978e6c964d488ef949c8e407e0989ffb Mon Sep 17 00:00:00 2001 From: Efim Poberezkin <8711996+efim-poberezkin@users.noreply.github.com> Date: Fri, 9 Apr 2021 18:20:09 +0400 Subject: [PATCH] automate changelogs (#84) --- .github/changelog_conf.json | 4 ++++ .github/workflows/build.yml | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/changelog_conf.json diff --git a/.github/changelog_conf.json b/.github/changelog_conf.json new file mode 100644 index 000000000..e4c7eab9b --- /dev/null +++ b/.github/changelog_conf.json @@ -0,0 +1,4 @@ +{ + "template": "${{UNCATEGORIZED}}", + "pr_template": "- ${{TITLE}}\n" +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a28fb376e..3ea55e045 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,12 +16,24 @@ jobs: - name: Clone project uses: actions/checkout@v2 + - name: Build changelog + id: build_changelog + uses: mikepenz/release-changelog-builder-action@v1 + with: + configuration: .github/changelog_conf.json + failOnError: true + ignorePreReleases: true + commitMode: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create release uses: softprops/action-gh-release@v1 with: - fail_on_unmatched_files: true + body: ${{ steps.build_changelog.outputs.changelog }} files: | LICENSE + fail_on_unmatched_files: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}