ANDROID-15405 -- PosterCard component #766
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Generate debug catalog app" | |
on: | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
- 'doc/**' | |
- 'tokens/**' | |
- '.github/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
debug-catalog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Publish catalog | |
env: | |
APPCENTER_API_TOKEN: ${{ secrets.APPCENTER_API_TOKEN }} | |
run: 'bash ./gradlew clean appCenterAssembleAndUploadDebug -Dappcenter_app_name=Mistica-Catalog -Dappcenter_notify=false | |
-Dappcenter_notes="Testing catalog for PR #${{ github.event.number }} ${{ github.sha }}"' | |
- name: Get version ID | |
id: id-request | |
uses: fjogeleit/http-request-action@v1 | |
with: | |
url: 'https://api.appcenter.ms/v0.1/apps/Tuenti-Organization/Mistica-Catalog/releases?published_only=true&top=1' | |
method: 'GET' | |
customHeaders: '{"X-API-Token": "${{ secrets.APPCENTER_API_TOKEN }}"}' | |
- name: Get version URL | |
id: url-request | |
run: echo "appcenter_url=https://install.appcenter.ms/orgs/tuenti-organization/apps/mistica-catalog/distribution_groups/public/releases/${{ fromJson(steps.id-request.outputs.response)[0].id }}" >> $GITHUB_OUTPUT | |
- name: Post comment with catalog URL | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `📱 New catalog for testing generated: [Download](${{ steps.url-request.outputs.appcenter_url }})` | |
}) |