Skip to content

ANDROID-13311 Evolve Feedback Screen #352

ANDROID-13311 Evolve Feedback Screen

ANDROID-13311 Evolve Feedback Screen #352

Workflow file for this run

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: Checkout repo
uses: actions/checkout@v3
- name: Publish catalog
env:
APPCENTER_API_TOKEN: ${{ secrets.APPCENTER_API_TOKEN }}
run: 'bash ./gradlew clean check 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 }})`
})