Commit 917c69b 1 parent 766969f commit 917c69b Copy full SHA for 917c69b
File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 98
98
permissions :
99
99
contents : write
100
100
steps :
101
+ - name : Checkout Repository
102
+ uses : actions/checkout@v4
103
+ with :
104
+ fetch-depth : 0 # This ensures we fetch all history and tags
105
+
106
+ - name : Get previous tag
107
+ run : |
108
+ echo "PREVIOUS_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo '')" >> $GITHUB_ENV
109
+
110
+ - name : Generate commit history
111
+ run : |
112
+ if [ -n "${{ env.PREVIOUS_TAG }}" ]; then
113
+ echo "### Commits since ${{ env.PREVIOUS_TAG }}" > CHANGELOG.md
114
+ echo "" >> CHANGELOG.md
115
+ git log --pretty=format:"- [%h](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commit/%H) %s" ${{ env.PREVIOUS_TAG }}..HEAD >> CHANGELOG.md
116
+ else
117
+ echo "### Initial Release" > CHANGELOG.md
118
+ echo "" >> CHANGELOG.md
119
+ git log --pretty=format:"- [%h](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commit/%H) %s" >> CHANGELOG.md
120
+ fi
121
+
101
122
- name : Download all artifacts
102
123
uses : actions/download-artifact@v4
103
124
with :
@@ -112,5 +133,6 @@ jobs:
112
133
files : |
113
134
./artifacts/AppleBlox-*/*.dmg
114
135
generate_release_notes : true
136
+ body_path : CHANGELOG.md
115
137
env :
116
138
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments