forked from google/horologist
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.58 KB
/
fixup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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"