Skip to content

Commit

Permalink
Define value for quality-gate-status output
Browse files Browse the repository at this point in the history
GitHub actions yaml is invalid without the value definition. Second, the action does not return the output without this definition.
  • Loading branch information
Jana Storch authored and wouter-admiraal-sonarsource committed Oct 6, 2022
1 parent 7a785d4 commit 00d3614
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ branding:
runs:
using: "composite"
steps:
- run: $GITHUB_ACTION_PATH/script/check-quality-gate.sh ${{ inputs.scanMetadataReportFile }}
- id: quality-gate-check
run: $GITHUB_ACTION_PATH/script/check-quality-gate.sh ${{ inputs.scanMetadataReportFile }}
shell: bash
inputs:
scanMetadataReportFile:
Expand All @@ -18,3 +19,4 @@ 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 }}

0 comments on commit 00d3614

Please sign in to comment.