Skip to content

Commit d513183

Browse files
committed
Update gpt-driver-tests.yml
1 parent 6b12986 commit d513183

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/gpt-driver-tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,16 @@ jobs:
136136
# --- Step 9: Upload and run tests on GPTDriver service. ---
137137
- name: Run GPTDriver tests
138138
run: |
139-
# Ensure the script is executable
140-
chmod +x ./branch-ios-sdk-repo/.github/gptdriverrunscript.sh
141-
# Execute the script, passing the .app path and platform
142-
bash ./branch-ios-sdk-repo/.github/gptdriverrunscript.sh ./ios-app-repo/build/Debug-iphonesimulator/BranchLinkSimulator.app ios
139+
call=$(curl -i -X POST \
140+
-H "Content-Type: multipart/form-data" \
141+
-F "build=@./ios-app-repo/IPA/BranchLinkSimulator.ipa" \
142+
-F "organisation_key=${{ secrets.MOBILEBOOST_API_ORG_KEY }}" \
143+
-F "platform=ios" \
144+
-F "metadata={}" \
145+
https://api.mobileboost.io/uploadBuild/)
146+
147+
mobileboost_url=$(echo "$call" | grep -o '"app_link":"[^"]*"' | cut -d '"' -f 4)
148+
echo "${mobileboost_url}" >>$GITHUB_ENV
143149
env:
144150
API_ORG_KEY: ${{ secrets.MOBILEBOOST_API_ORG_KEY }}
145151
API_KEY: ${{ secrets.MOBILEBOOST_API_ORG_KEY }} # As per vendor design

0 commit comments

Comments
 (0)