Skip to content

Commit e25ee30

Browse files
cryptobenchclaude
andcommitted
Fix CI to include commit changelog in release notes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7c4fef4 commit e25ee30

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,23 @@ jobs:
4545
with:
4646
name: EasyWebMap
4747

48+
- name: Checkout for commit info
49+
uses: actions/checkout@v4
50+
with:
51+
fetch-depth: 0
52+
4853
- name: Generate version
4954
id: version
5055
run: echo "version=v1.0.${{ github.run_number }}" >> $GITHUB_OUTPUT
5156

57+
- name: Get changelog from commit
58+
id: changelog
59+
run: |
60+
echo "message<<EOF" >> $GITHUB_OUTPUT
61+
git log -1 --pretty=format:"%B" >> $GITHUB_OUTPUT
62+
echo "" >> $GITHUB_OUTPUT
63+
echo "EOF" >> $GITHUB_OUTPUT
64+
5265
- name: Rename JAR
5366
run: mv EasyWebMap-*.jar EasyWebMap-${{ steps.version.outputs.version }}.jar
5467

@@ -65,6 +78,12 @@ jobs:
6578
6679
---
6780
81+
### Changelog
82+
83+
${{ steps.changelog.outputs.message }}
84+
85+
---
86+
6887
### How to Install
6988
7089
1. Download `EasyWebMap-${{ steps.version.outputs.version }}.jar` below

0 commit comments

Comments
 (0)