Fixups #8
Workflow file for this run
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
name: Fixups | |
on: | |
workflow_dispatch: | |
jobs: | |
fixes: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
lfs: 'true' | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- name: set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Reformat | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: spotlessApply | |
- name: Push reformatted code | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
file_pattern: '**/*.kt' | |
disable_globbing: true | |
commit_message: "🤖 reformat" | |
- name: Generate APIs | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: metalavaGenerateSignature metalavaGenerateSignatureDebug | |
- name: Push new apis | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
file_pattern: '**/current.api' | |
disable_globbing: true | |
commit_message: "🤖 metalava" | |
- name: Repair screenshots | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: testDebug -P screenshot.record=repair | |
- name: Push new screenshots if available | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
file_pattern: '**/snapshots/images/*.png' | |
disable_globbing: true | |
commit_message: "🤖 Updates screenshots" |