Skip to content

Commit d494adc

Browse files
Added node + eas-cli install to fix download apk job.
1 parent 21c9546 commit d494adc

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/eas-android-build.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ jobs:
4141
run: |
4242
echo "Starting EAS build..."
4343
44-
# Ensure jq is installed
4544
if ! command -v jq &> /dev/null; then
46-
echo "jq could not be found"
47-
exit 1
45+
sudo apt-get install -y jq
4846
fi
4947
5048
BUILD_ID=$(npx eas build -p android --profile production --non-interactive --json | jq -r '.[0].id')
@@ -66,6 +64,14 @@ jobs:
6664
outputs:
6765
apk_path: ${{ steps.download.outputs.APK_PATH }}
6866
steps:
67+
- name: Setup Node.js
68+
uses: actions/setup-node@v4
69+
with:
70+
node-version: 20.x
71+
72+
- name: Install EAS CLI
73+
run: npm install -g eas-cli@latest
74+
6975
- name: Wait for EAS Build to Complete
7076
run: |
7177
BUILD_ID=${{ needs.build-android.outputs.build_id }}
@@ -83,10 +89,8 @@ jobs:
8389
SLEEP_TIME=30
8490
8591
while [[ $RETRY_COUNT -lt $MAX_RETRIES ]]; do
86-
BUILD_STATUS_JSON=$(npx eas build:view --json 2>/dev/null)
92+
BUILD_STATUS_JSON=$(npx eas build:view --json $BUILD_ID 2>/dev/null)
8793
88-
echo "Build status raw response: $BUILD_STATUS_JSON"
89-
9094
if [[ -z "$BUILD_STATUS_JSON" || "$BUILD_STATUS_JSON" == "null" ]]; then
9195
echo "Error: Failed to fetch build status! Retrying in $SLEEP_TIME seconds..."
9296
RETRY_COUNT=$((RETRY_COUNT+1))
@@ -166,7 +170,7 @@ jobs:
166170
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
167171
cat changelog.txt >> $GITHUB_ENV
168172
echo "EOF" >> $GITHUB_ENV
169-
echo "CHANGELOG=$GITHUB_ENV" >> $GITHUB_OUTPUT
173+
echo "CHANGELOG=$(cat changelog.txt)" >> $GITHUB_OUTPUT
170174
171175
- name: Upload Changelog as artifact
172176
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)