mirror of
https://github.com/astral-sh/ruff
synced 2026-01-11 08:34:29 -05:00
Continue the battle for if-comment
This commit is contained in:
5
.github/workflows/pr-comment.yaml
vendored
5
.github/workflows/pr-comment.yaml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user