Skip to content

Commit

Permalink
Fix release draft name
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbrooks committed Jan 13, 2025
1 parent 18f7d2d commit e837f55
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Check style
run: ./gradlew ktlintCheck

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit e837f55

Please sign in to comment.