Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AniketSK committed Jun 28, 2024
1 parent dd61982 commit d39e0fa
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,12 @@ jobs:
- name: Build with Gradle
run: ./gradlew assembleRelease

- name: Create table for github summary
run: |
./print_apk_table.py >> $GITHUB_STEP_SUMMARY
# - name: Check file size
# run: zipinfo app/build/outputs/apk/02-android-sdk/release/

- 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: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: apks
path: app/build/outputs/apk/02-android-sdk/release/*

- 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'

0 comments on commit d39e0fa

Please sign in to comment.