Skip to content

Attempt auto readme generation #22

Attempt auto readme generation

Attempt auto readme generation #22

Workflow file for this run

name: Update README.md with generated image grids
on:
push:
branches:
- update-readme
jobs:
generate_image_grids:
runs-on: macOS-latest
strategy:
fail-fast: false
matrix:
api-level: [29]
steps:
- uses: actions/checkout@v2
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Gradle cache
uses: gradle/gradle-build-action@v2
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: Install Homebrew
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install ADB
run: brew install android-platform-tools
- name: Run CaptureDialogSamples Test
uses: ReactiveCircus/android-emulator-runner@v2.28.0
with:
api-level: ${{ matrix.api-level }}
target: default
sdcard-path-or-size: 1000M
profile: Nexus 6
cores: 6
script: |
adb root
./gradlew connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=com.mk.sheets.sample_images.CaptureDialogSamples
adb pull /storage/emulated/0/Download/sheets/ ./docs/res/sheets
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Pillow
run: pip install Pillow
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Generate image grid in README
run: |
python3 scripts/generate_image_grid.py
- name: Commit and Push Changes
run: |
git config user.name "README Bot"
git config user.email "<>"
git add README.md
git add docs/res/sheets
git add docs/README.md
git commit -m "Update README.md"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}