Skip to content

Commit c7e185c

Browse files
Fixing issue with error.
1 parent bb7062a commit c7e185c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: .github/workflows/eas-android-build.yml

+10-10
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)