mirror of
https://github.com/FossifyOrg/Launcher.git
synced 2026-06-12 18:48:17 -04:00
Upload new baseline when lint fails
This commit is contained in:
10
.github/workflows/pr.yml
vendored
10
.github/workflows/pr.yml
vendored
@@ -14,7 +14,17 @@ jobs:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
- name: Run Android lint
|
||||
id: lint
|
||||
run: ./gradlew lint
|
||||
- name: Update baseline
|
||||
if: ${{ failure() && steps.lint.conclusion == 'failure' }}
|
||||
run: ./gradlew updateLintBaseline
|
||||
- name: Upload new baseline
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ failure() && steps.lint.conclusion == 'failure' }}
|
||||
with:
|
||||
name: 'new-lint-baseline'
|
||||
path: 'app/lint-baseline.xml'
|
||||
- name: Upload results
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
|
||||
Reference in New Issue
Block a user