File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -188,21 +188,21 @@ jobs:
188188 id : changelog
189189 run : |
190190 echo "Generating changelog..."
191+
192+ # Generate formatted changelog (last 10 commits)
191193 CHANGELOG=$(git log --pretty=format:"- %s (%h) by %an" -n 10)
192- echo "Raw changelog content:"
193- echo "$CHANGELOG"
194194
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"
197197
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
203202
204- # Create file version
203+ # Save to a file as well
205204 echo "$CHANGELOG" > changelog.txt
205+ shell : bash
206206
207207 - name : Upload Changelog as artifact
208208 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments