From 7f553aa55c0de1972a247ef51125c07f093f5aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Sat, 19 Jun 2021 13:02:42 +0200 Subject: [PATCH] Add ChangeLog to releases --- .github/workflows/release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47cae80..fadeb8d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,10 @@ jobs: git push origin ${{ steps.major-version.outputs.tag }} --force - name: Get current date id: date - run: echo "::set-output name=date::$(date --iso-8601=seconds)" + run: echo "::set-output name=date::$(date --iso-8601)" + - name: Build full ChangeLog + if: ${{ steps.version.outputs.new_tag }} != '' + run: npx conventional-changelog-cli --release-count=0 --preset=eslint --outfile="${{ runner.temp }}/FullChangeLog.md" - name: Create/update release ${{ steps.major-version.outputs.tag }} if: ${{ steps.version.outputs.new_tag }} != "" uses: ncipollo/release-action@v1 @@ -43,7 +46,10 @@ jobs: allowUpdates: true tag: ${{ steps.major-version.outputs.tag }} name: ${{ steps.version.outputs.new_tag }} (${{ steps.date.outputs.date }}) - omitBody: true + bodyFile: ${{ runner.temp }}/FullChangeLog.md + - name: Build ChangeLog + if: ${{ steps.version.outputs.new_tag }} != '' + run: npx conventional-changelog-cli --release-count=2 --outfile="${{ runner.temp }}/ChangeLog.md" - name: Create release ${{ steps.version.outputs.new_tag }} if: ${{ steps.version.outputs.new_tag }} != "" uses: ncipollo/release-action@v1 @@ -51,4 +57,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.version.outputs.new_tag }} name: Release ${{ steps.version.outputs.new_tag }} - omitBody: true + bodyFile: ${{ runner.temp }}/ChangeLog.md