From 00d36147d53bcfcc3ba5bde52e55d0783f829f8b Mon Sep 17 00:00:00 2001 From: Jana Storch Date: Thu, 25 Aug 2022 11:17:22 +0200 Subject: [PATCH] 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. --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2058315..9b3b9c7 100644 --- a/action.yml +++ b/action.yml @@ -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: @@ -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 }}