Files
sonarqube-quality-gate-action/action.yml
T
Jana Storch 00d36147d5 Define value for quality-gate-status output
GitHub actions yaml is invalid without the value definition. Second, the action does not return the output without this definition.
2022-10-06 09:19:14 +02:00

23 lines
684 B
YAML

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 }}
shell: bash
inputs:
scanMetadataReportFile:
description: Location of the scanner metadata report file
required: false
default: .scannerwork/report-task.txt
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 }}