From 1a24ba36ed99cc5ac410e6aba680a092cab0226e Mon Sep 17 00:00:00 2001 From: Adirelle Date: Tue, 25 Jan 2022 19:27:38 +0100 Subject: [PATCH] Fix the changelog of the github release. --- .github/workflows/build_release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 5eb4ccb..114de6c 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -28,12 +28,12 @@ jobs: env: MOD_VERSION: ${{ steps.vars.outputs.VERSION }} MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} - # - # - uses: gradle/gradle-build-action@v2 - # with: - # arguments: getChangelog -q - # env: - # MOD_VERSION: ${{ steps.vars.outputs.VERSION }} + + - id: changelog + run: | + echo "::set-output name=CHANGELOG::$(./gradlew getChangelog -q --no-header)" + env: + MOD_VERSION: ${{ steps.vars.outputs.VERSION }} - uses: actions/upload-artifact@v2 with: @@ -43,6 +43,6 @@ jobs: - uses: softprops/action-gh-release@v1 with: name: ${{ steps.vars.outputs.VERSION }} - body_path: CHANGELOG.md + body: ${{ steps.changelog.outputs.CHANGELOG } files: | build/libs/*[0-9].jar