-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yaml
43 lines (37 loc) · 1.21 KB
/
action.yaml
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
name: '📦 Archive Android Lint reports'
description: 'Archive Android Lint reports and analyses SARIF reports.'
inputs:
analysis:
description: 'A file or directory to be uploaded to GitHub code scanning.'
html:
description: 'A file, directory or wildcard pattern that describes what to upload.'
sarif:
description: 'A file, directory or wildcard pattern that describes what to upload.'
xml:
description: 'A file, directory or wildcard pattern that describes what to upload.'
runs:
using: composite
steps:
- name: 'Archive Lint HTML report'
if: inputs.html != ''
uses: actions/upload-artifact@v4
with:
name: lint-html
path: ${{ inputs.html }}
- name: 'Archive Lint SARIF report'
if: inputs.sarif != ''
uses: actions/upload-artifact@v4
with:
name: lint-sarif
path: ${{ inputs.sarif }}
- name: 'Archive Lint XML report'
if: inputs.xml != ''
uses: actions/upload-artifact@v4
with:
name: lint-xml
path: ${{ inputs.xml }}
- name: 'Analyse Lint SARIF report'
if: inputs.analysis != ''
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ inputs.analysis }}