mirror of https://github.com/astral-sh/ruff
Continue the battle for if-comment
This commit is contained in:
parent
c437a899f8
commit
8a48dfe3e3
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue