Skip to content

Commit 369e39b

Browse files
Fixes in changelog generation again.
1 parent 680b256 commit 369e39b

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

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

+10-15
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,11 @@ jobs:
132132
exit 0
133133
;;
134134
135-
"ERRORED"|"CANCELLED")
136-
if [[ "$BUILD_STATUS" == "canceled" ]]; then
137-
echo "Build was canceled! Details:"
138-
else
139-
echo "Build failed! Error details:"
140-
fi
141-
echo "$BUILD_STATUS_JSON" | jq .
142-
exit 1
143-
;;
135+
"ERRORED"|"CANCELLED")
136+
echo "Build failed! Error details:"
137+
echo "$BUILD_STATUS_JSON" | jq .
138+
exit 1
139+
;;
144140
145141
"NEW"|"IN_QUE"|"IN_PROGRESS"|"PENDING")
146142
echo "Build is still in progress..."
@@ -186,26 +182,25 @@ jobs:
186182
- name: Checkout repository
187183
uses: actions/checkout@v4
188184
with:
189-
fetch-depth: 0 # Ensures full history is available
185+
fetch-depth: 0 # Full commit history
190186

191187
- name: Generate Changelog
192188
id: changelog
193189
run: |
194190
echo "Generating changelog..."
195191
196-
# Ensure full history is available
197-
git fetch --prune --unshallow || true
192+
# Preserved your original git fetch with safety
193+
git fetch --prune || true
198194
199-
# Generate changelog and write to file
200195
CHANGELOG=$(git log --pretty=format:"- %s (%h) by %an" -n 10)
201196
echo "$CHANGELOG" > changelog.txt
202197
203-
# Output for debugging
204198
echo "Changelog content:"
205199
cat changelog.txt
206200
207-
# Store in environment variables
201+
# Critical fix for output formatting
208202
CHANGELOG_ESCAPED=$(echo "$CHANGELOG" | sed 's/"/\\"/g' | tr -d '\r')
203+
209204
echo "CHANGELOG=$CHANGELOG_ESCAPED" >> $GITHUB_OUTPUT
210205
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
211206
echo "$CHANGELOG_ESCAPED" >> $GITHUB_ENV

0 commit comments

Comments
 (0)