|
41 | 41 | run: | |
42 | 42 | echo "Starting EAS build..." |
43 | 43 |
|
44 | | - # Ensure jq is installed |
45 | 44 | if ! command -v jq &> /dev/null; then |
46 | | - echo "jq could not be found" |
47 | | - exit 1 |
| 45 | + sudo apt-get install -y jq |
48 | 46 | fi |
49 | 47 |
|
50 | 48 | BUILD_ID=$(npx eas build -p android --profile production --non-interactive --json | jq -r '.[0].id') |
|
66 | 64 | outputs: |
67 | 65 | apk_path: ${{ steps.download.outputs.APK_PATH }} |
68 | 66 | 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 | + |
69 | 75 | - name: Wait for EAS Build to Complete |
70 | 76 | run: | |
71 | 77 | BUILD_ID=${{ needs.build-android.outputs.build_id }} |
|
83 | 89 | SLEEP_TIME=30 |
84 | 90 |
|
85 | 91 | 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) |
87 | 93 | |
88 | | - echo "Build status raw response: $BUILD_STATUS_JSON" |
89 | | -
|
90 | 94 | if [[ -z "$BUILD_STATUS_JSON" || "$BUILD_STATUS_JSON" == "null" ]]; then |
91 | 95 | echo "Error: Failed to fetch build status! Retrying in $SLEEP_TIME seconds..." |
92 | 96 | RETRY_COUNT=$((RETRY_COUNT+1)) |
@@ -166,7 +170,7 @@ jobs: |
166 | 170 | echo "CHANGELOG<<EOF" >> $GITHUB_ENV |
167 | 171 | cat changelog.txt >> $GITHUB_ENV |
168 | 172 | echo "EOF" >> $GITHUB_ENV |
169 | | - echo "CHANGELOG=$GITHUB_ENV" >> $GITHUB_OUTPUT |
| 173 | + echo "CHANGELOG=$(cat changelog.txt)" >> $GITHUB_OUTPUT |
170 | 174 |
|
171 | 175 | - name: Upload Changelog as artifact |
172 | 176 | uses: actions/upload-artifact@v4 |
|
0 commit comments