-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27cfbf7
commit b0442db
Showing
21 changed files
with
1,188 additions
and
271 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
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: Install ADB | ||
run: brew install android-platform-tools | ||
|
||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Run CaptureDialogSamples Test | ||
uses: ReactiveCircus/android-emulator-runner@v2.28.0 | ||
with: | ||
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833 | ||
api-level: ${{ matrix.api-level }} | ||
script: | | ||
adb root | ||
./gradlew installDebug | ||
adb shell pm grant com.mk.sheets.compose android.permission.WRITE_EXTERNAL_STORAGE | ||
./gradlew connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=com.mk.sheets.sample_images.CaptureDialogSamples | ||
adb pull /storage/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 }} |
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
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
Oops, something went wrong.