File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727 - name : ' List files'
2828 run : |
29- release_info=$(curl -s https://api.github.com/repos/AppiumTestDistribution/appium-flutter-server/releases/latest)
30- asset_urls=$(echo "$release_info" | grep "browser_download_url" | cut -d '"' -f 4)
31- android_app=$(echo "$asset_urls" | head -n 1)
29+ version=$(grep 'appium_flutter_server:' README.md | awk '{print $2}')
30+ android_app="https://github.com/AppiumTestDistribution/appium-flutter-server/releases/download/$version/app-debug.apk"
3231 echo "$android_app"
33- ios_app=$(echo "$asset_urls" | tail -n 1)
34- echo "$ios_app"
3532 curl -LO $android_app
3633 ls ${{ github.workspace }}
3734 echo "APP_PATH=${{ github.workspace }}/app-debug.apk" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 3131 run : brew install jq
3232
3333 - run : |
34- curl -s https://api.github.com/repos/AppiumTestDistribution/appium-flutter-server/releases/latest
35- ios_app=$(curl -s https://api. github.com/repos/ AppiumTestDistribution/appium-flutter-server/releases/latest | jq -r '.assets[] | select(.name==" ios.zip") | .browser_download_url')
34+ version=$(grep 'appium_flutter_server:' README.md | awk '{print $2}')
35+ ios_app=" https://github.com/AppiumTestDistribution/appium-flutter-server/releases/download/$version/ ios.zip"
3636 echo "Downloading from: $ios_app"
3737 curl -LO "$ios_app"
3838 echo "APP_PATH=$(pwd)/ios.zip" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments