From 8a48dfe3e34fb8316e1c3e1da288793eed05452f Mon Sep 17 00:00:00 2001 From: Zanie Date: Wed, 25 Oct 2023 15:10:14 -0500 Subject: [PATCH] Continue the battle for if-comment --- .github/workflows/pr-comment.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-comment.yaml b/.github/workflows/pr-comment.yaml index 8e31372b33..a158a1e0f1 100644 --- a/.github/workflows/pr-comment.yaml +++ b/.github/workflows/pr-comment.yaml @@ -69,8 +69,9 @@ jobs: echo "
" >> 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 }}