Skip to content

Correct spacing

Correct spacing #43

Workflow file for this run

name: Android CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Decrypt the keystore
run: gpg --quiet --batch --yes --decrypt --passphrase='${{ secrets.KEYSTORE_DECRYPT_PASSWORD }}' --output app/sample-key.keystore sample-key.keystore.gpg
- name: Decrypt the keystore properties
run: gpg --quiet --batch --yes --decrypt --passphrase='${{ secrets.KEYSTORE_PROPERTIES_DECRYPT_PASSWORD }}' --output app/sample-keystore.properties sample-keystore.properties.gpg
- name: Collect Branch Name from gradle.properties into env
run: echo "BRANCH_COMPLETE_NAME=size-docs-for-android-sdk-$(./gradlew -q branchSuffixForDocsPR)" >> $GITHUB_ENV
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Create table for github summary
run: |
./print_apk_table.py >> $GITHUB_STEP_SUMMARY
- name: Clone Docs
run: |
git clone "https://${{ secrets.ANDROID_SDK_CLONE_TOKEN }}@github.com/100mslive/100ms-docs.git"
- name: Write table to file
run: |
./print_apk_table.py 100ms-docs/docs/android/v2/how-to-guides/install-the-sdk/size.mdx $(./gradlew -q printPythonScriptArgs)
- name: Commit the docs
working-directory: 100ms-docs
run: |
git config --global user.name "Aniket Kadam"
git config --global user.email "[email protected]"
git checkout -b $BRANCH_COMPLETE_NAME
git add ./docs/android/v2/how-to-guides/install-the-sdk/size.mdx
git commit -m "Adding size docs for versions $(./gradlew -q printPythonScriptArgs)"
- name: Push up the docs branch
working-directory: 100ms-docs
run: git push --set-upstream origin $BRANCH_COMPLETE_NAME
- name: Open a PR
working-directory: 100ms-docs
run: |
curl -m 120 -XPOST -H 'accept: application/vnd.github+json' -H "Authorization: Bearer ${{ secrets.ANDROID_SDK_CLONE_TOKEN }}" -H 'X-GitHub-Api-Version: 2022-11-28' -d '{"title":"Size docs for android","body":"api reference docs update", "base":"qa","head":"'$BRANCH_COMPLETE_NAME'"}' 'https://api.github.com/repos/100mslive/100ms-docs/pulls'