Skip to content

Commit 680b256

Browse files
Fixing create release job.
1 parent 038bb04 commit 680b256

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

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

+16-22
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
outputs:
6565
apk_path: ${{ steps.download.outputs.APK_PATH }}
6666
steps:
67-
- name: Checkout repository # Fix added here
67+
- name: Checkout repository
6868
uses: actions/checkout@v4
6969

7070
- name: Setup Node.js
@@ -81,7 +81,7 @@ jobs:
8181
- name: Install Project Dependencies (Including dotenv)
8282
run: npm ci
8383

84-
- name: Verify Project Files # Added verification step
84+
- name: Verify Project Files
8585
run: |
8686
echo "Current directory contents:"
8787
ls -la
@@ -196,26 +196,20 @@ jobs:
196196
# Ensure full history is available
197197
git fetch --prune --unshallow || true
198198
199-
# Generate changelog from the last 10 commits
200-
CHANGELOG=$(git log --pretty=format:"- %s (%h) by %an" -n 10 | sed 's/"/\\"/g' | tr -d '\r')
201-
202-
# Output the changelog for debugging
203-
echo "Changelog:"
204-
echo "$CHANGELOG"
205-
206-
# Store changelog in environment variable safely
207-
{
208-
echo 'CHANGELOG<<EOF'
209-
echo "$CHANGELOG"
210-
echo 'EOF'
211-
} >> "$GITHUB_ENV"
212-
213-
# Store changelog in GITHUB_OUTPUT so it can be used in later steps
214-
{
215-
echo 'CHANGELOG<<EOF'
216-
echo "$CHANGELOG"
217-
echo 'EOF'
218-
} >> "$GITHUB_OUTPUT"
199+
# Generate changelog and write to file
200+
CHANGELOG=$(git log --pretty=format:"- %s (%h) by %an" -n 10)
201+
echo "$CHANGELOG" > changelog.txt
202+
203+
# Output for debugging
204+
echo "Changelog content:"
205+
cat changelog.txt
206+
207+
# Store in environment variables
208+
CHANGELOG_ESCAPED=$(echo "$CHANGELOG" | sed 's/"/\\"/g' | tr -d '\r')
209+
echo "CHANGELOG=$CHANGELOG_ESCAPED" >> $GITHUB_OUTPUT
210+
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
211+
echo "$CHANGELOG_ESCAPED" >> $GITHUB_ENV
212+
echo "EOF" >> $GITHUB_ENV
219213
220214
- name: Upload Changelog as artifact
221215
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)