Skip to content

Commit

Permalink
Merge pull request #5 from lykahb/gabriella/fix_conditional
Browse files Browse the repository at this point in the history
Fix conditional check
  • Loading branch information
lykahb authored Feb 22, 2023
2 parents 6da8a61 + 10f3a74 commit 545e452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<!-- Paths Filter with Diff Stat -->'
- if: steps.condition.outputs.passed
- if: steps.condition.outputs.passed == 'true'
id: make-comment-body
shell: bash
run: |
Expand All @@ -36,7 +36,7 @@ runs:
echo "comment_body<<PR_COMMENT_EOF" >> $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:
Expand Down

0 comments on commit 545e452

Please sign in to comment.