Fixups #1
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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@v3 | |
with: | |
arguments: --continue 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@v3 | |
with: | |
arguments: --continue 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@v3 | |
with: | |
arguments: --continue verifyAndRecordRoborazziDebug | |
- name: Push new screenshots if available | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
if: ${{ always() }} | |
with: | |
file_pattern: '**/snapshots/images/*.png **/screenshots/*.png **/audit/*.png' | |
disable_globbing: true | |
commit_message: "🤖 Updates screenshots" |