-
Notifications
You must be signed in to change notification settings - Fork 74
/
action.yml
26 lines (26 loc) · 888 Bytes
/
action.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
name: SonarQube Quality Gate Check
description: >
Check if a project / analysis passed the Quality Gate check
branding:
icon: check
color: green
runs:
using: "composite"
steps:
- id: quality-gate-check
run: $GITHUB_ACTION_PATH/script/check-quality-gate.sh "${{ inputs.scanMetadataReportFile }}" "${{ inputs.pollingTimeoutSec }}"
shell: bash
inputs:
scanMetadataReportFile:
description: Location of the scanner metadata report file
required: false
default: .scannerwork/report-task.txt
pollingTimeoutSec:
description: "The maximum time (in seconds) to poll for SonarQube's Quality Gate status. Default: 300."
required: false
default: "300"
outputs:
quality-gate-status:
description: >
The resulting Quality Gate Status value of PASSED, WARN or FAILED
value: ${{ steps.quality-gate-check.outputs.quality-gate-status }}