We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0b1dd3 commit ebf5d94Copy full SHA for ebf5d94
.github/workflows/release.yml
@@ -26,8 +26,20 @@ jobs:
26
- name: Build fat JAR
27
run: ./gradlew buildFatJar
28
29
+ - name: Extract changelog
30
+ id: changelog
31
+ run: |
32
+ # Extract the section for the current version (between first and second ## headings)
33
+ changelog=$(awk '/^## /{if(found) exit; found=1; next} found{print}' CHANGELOG.md)
34
+ # Set as multiline output
35
+ echo "body<<EOF" >> "$GITHUB_OUTPUT"
36
+ echo "$changelog" >> "$GITHUB_OUTPUT"
37
+ echo "EOF" >> "$GITHUB_OUTPUT"
38
+
39
- name: Create Release
40
uses: softprops/action-gh-release@v2
41
with:
42
files: build/libs/tlaplus-formatter.jar
43
+ body: ${{ steps.changelog.outputs.body }}
44
generate_release_notes: true
45
+ append_body: true
0 commit comments