Skip to content

Commit

Permalink
fix: add missing check for present of pr-metadata input
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Jan 12, 2024
1 parent c9d01f2 commit 9e03fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ runs:
name: Show results in PR comment
uses: redhat-plumbers-in-action/issue-commentator@v1
with:
issue: ${{ fromJSON(inputs.pr-metadata).number }}
issue: ${{ inputs.pr-metadata && fromJSON(inputs.pr-metadata).number || fromJSON(steps.metadata.outputs.metadata).number }}
message: |
${{ steps.commit-linter.outputs.validated-pr-metadata && toJSON(fromJSON(steps.commit-linter.outputs.validated-pr-metadata).validation.message) || '' }}
${{ steps.tracker-validator.outputs.status && steps.tracker-validator.outputs.status || '' }}
Expand Down

0 comments on commit 9e03fae

Please sign in to comment.