diff --git a/action.yml b/action.yml index b2c25b1..bff3863 100644 --- a/action.yml +++ b/action.yml @@ -20,14 +20,14 @@ runs: shell: bash run: | echo "passed=$(jq 'to_entries | map(.value) | (map(.additionCount + .deletionCount) | ${{ inputs.minimum-lines }} <= add) and (map (.fileCount) | ${{ inputs.minimum-files }} <= add)' <<< '${{ inputs.diff-stat }}')" >> "${GITHUB_OUTPUT}" - - if: steps.condition.outputs.passed + - if: steps.condition.outputs.passed == 'true' uses: peter-evans/find-comment@v2 id: find-comment with: issue-number: ${{ github.event.pull_request.number }} comment-author: 'github-actions[bot]' body-includes: '' - - if: steps.condition.outputs.passed + - if: steps.condition.outputs.passed == 'true' id: make-comment-body shell: bash run: | @@ -36,7 +36,7 @@ runs: echo "comment_body<> $GITHUB_OUTPUT echo "$COMMENT_BODY" >> $GITHUB_OUTPUT echo "PR_COMMENT_EOF" >> $GITHUB_OUTPUT - - if: steps.condition.outputs.passed + - if: steps.condition.outputs.passed == 'true' uses: peter-evans/create-or-update-comment@v2 id: create-or-update-comment with: