Continue the battle for if-comment

This commit is contained in:
Zanie 2023-10-25 15:10:14 -05:00
parent c437a899f8
commit 8a48dfe3e3
1 changed files with 3 additions and 2 deletions

View File

@ -69,8 +69,9 @@ jobs:
echo "<br />" >> comment.txt
- name: Check comment
id: check-comment
run: |
echo $(test -f comment.txt) >> $GITHUB_OUTPUT
test -f comment.txt && echo "comment=true" || echo "comment=false" >> $GITHUB_OUTPUT
# - name: Generate GitHub output
# run: |
@ -80,7 +81,7 @@ jobs:
- name: Find Comment
uses: peter-evans/find-comment@v2
if: ${{ steps.check-comment.outputs == 'true' }}
if: ${{ steps.check-comment.outputs.comment == 'true' }}
id: find-comment
with:
issue-number: ${{ steps.pr-number.outputs.pr-number }}