Skip to content

Commit 5718be5

Browse files
committed
Rename formatKotlinAndApiDump job to lintAndApiChecks and add API check step
1 parent e241558 commit 5718be5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
formatKotlinAndApiDump:
15+
lintAndApiChecks:
1616
runs-on: macos-latest
1717
permissions:
1818
contents: write
@@ -30,11 +30,16 @@ jobs:
3030
xcode-version: latest-stable
3131
- name: Format Kotlin
3232
run: ./gradlew formatKotlin
33+
- name: Api Check
34+
id: apiCheck
35+
continue-on-error: true
36+
run: ./gradlew apiCheck
3337
- name: Api File Update
38+
if: ${{ steps.apiCheck.conclusion == 'failure' }}
3439
run: ./gradlew apiDump
3540
- uses: stefanzweifel/git-auto-commit-action@v6
3641
jobMatrixSetup:
37-
needs: formatKotlinAndApiDump
42+
needs: lintAndApiChecks
3843
runs-on: macos-latest
3944
outputs:
4045
emulator_jobs_matrix: ${{ steps.dataStep.outputs.emulator_jobs_matrix }}

0 commit comments

Comments
 (0)