@@ -96,15 +96,31 @@ jobs:
9696 name : mda
9797 path : automation.mda
9898
99- android-app :
100- runs-on : ubuntu-22.04
101- steps :
102- - name : " Check out code"
103- uses : actions/checkout@v4
104- - name : Build android apk
105- uses : ./.github/actions/build-android
106- with :
107- google_services_json : ${{ secrets.GOOGLE_SERVICES_JSON }}
99+ # android-app:
100+ # runs-on: ubuntu-22.04
101+ # steps:
102+ # - name: "Check out code"
103+ # uses: actions/checkout@v4
104+ # - name: Build android apk
105+ # uses: ./.github/actions/build-android
106+ # with:
107+ # google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }}
108+
109+ # ios-app:
110+ # runs-on: macOS-13
111+ # steps:
112+ # - name: "Check out code"
113+ # uses: actions/checkout@v4
114+ # - name: Build ios app
115+ # uses: ./.github/actions/build-ios
116+ # env:
117+ # MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
118+ # MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
119+ # KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
120+ # GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
121+ # APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
122+ # APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
123+ # APP_STORE_CONNECT_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_KEY_CONTENT }}
108124
109125 android-test :
110126 needs : [mendix-version, project, android-app]
@@ -116,17 +132,38 @@ jobs:
116132 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
117133 with :
118134 name : mda
119- - name : " Download Android app"
120- uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
121- with :
122- name : android-app
123- path : android-app
135+ # - name: "Download Android app"
136+ # uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
137+ # with:
138+ # name: android-app
139+ # path: android-app
124140
125- - name : " Debug Android app directory "
141+ - name : " Install GitHub CLI "
126142 run : |
127- echo "Listing contents of android-app directory:"
128- ls -R android-app/
129- shell : bash
143+ curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
144+ sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
145+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
146+ sudo apt update
147+ sudo apt install gh
148+ - name : " Authenticate GitHub CLI"
149+ run : |
150+ unset GITHUB_TOKEN
151+ echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
152+ - name : " Fetch artifacts from run 676"
153+ id : fetch-artifacts
154+ run : |
155+ artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14200920117/artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
156+ echo "Artifacts URL: $artifacts_url"
157+ echo "artifacts_url=$artifacts_url" >> $GITHUB_ENV
158+ - name : " Download Android app"
159+ if : env.artifacts_url != ''
160+ run : |
161+ if [ -z "$artifacts_url" ]; then
162+ echo "No artifacts URL found."
163+ exit 1
164+ fi
165+ curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -o android-app.zip "$artifacts_url"
166+ unzip android-app.zip -d android-app
130167
131168 - name : " Check for APK file"
132169 run : |
0 commit comments