File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -188,21 +188,21 @@ jobs:
188
188
id : changelog
189
189
run : |
190
190
echo "Generating changelog..."
191
+
192
+ # Generate formatted changelog (last 10 commits)
191
193
CHANGELOG=$(git log --pretty=format:"- %s (%h) by %an" -n 10)
192
- echo "Raw changelog content:"
193
- echo "$CHANGELOG"
194
194
195
- # Properly escape content and format for GitHub output
196
- CHANGELOG_ESCAPED=$( echo "$CHANGELOG" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')
195
+ echo "Changelog content:"
196
+ echo "$CHANGELOG"
197
197
198
- # Create multiline output using delimiter
199
- delimiter=$(openssl rand -hex 8)
200
- echo "CHANGELOG<<${delimiter}" >> $GITHUB_OUTPUT
201
- echo "$CHANGELOG" >> $GITHUB_OUTPUT
202
- echo "${delimiter}" >> $GITHUB_OUTPUT
198
+ # Set as an output using the proper multiline format
199
+ echo "CHANGELOG<<EOF" >> $GITHUB_ENV
200
+ echo "$CHANGELOG" >> $GITHUB_ENV
201
+ echo "EOF" >> $GITHUB_ENV
203
202
204
- # Create file version
203
+ # Save to a file as well
205
204
echo "$CHANGELOG" > changelog.txt
205
+ shell : bash
206
206
207
207
- name : Upload Changelog as artifact
208
208
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments