From e837f55928f193692f4ee20556e3ad1b01f26795 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Sun, 12 Jan 2025 20:45:44 -0500 Subject: [PATCH] Fix release draft name --- .github/workflows/build.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 638e617..6cae1ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,20 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 + - name: Export Properties + id: properties + shell: bash + run: | + cat changelog.md + PROPERTIES="$(./gradlew properties --console=plain -q)" + VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" + CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" + + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "changelog<> $GITHUB_OUTPUT + echo "$CHANGELOG" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + - name: Check style run: ./gradlew ktlintCheck @@ -99,7 +113,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create v${{ needs.build.outputs.version }} ${{ github.workspace }}/dist/* \ + gh release create ${{ needs.build.outputs.version }} ${{ github.workspace }}/dist/* \ --draft \ --title "v${{ needs.build.outputs.version }}" \ --notes "$(cat << 'EOM'