fix: get PR check workflow to work properly

This commit is contained in:
Robin Salen 2024-06-28 15:55:32 -04:00
parent 25d062afeb
commit cedffae4f6
No known key found for this signature in database
GPG Key ID: F98FD38F65687358

View File

@ -50,7 +50,7 @@ jobs:
uses: actions/checkout@v4
- name: Close PR if spam are found and author is not a contributor or member
if: ${{ env.is_spam == 'true' && github.event.pull_request.author_association != 'CONTRIBUTOR' && github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'OWNER' }}
if: ${{ env.is_spam == 'true' && github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' }}
run: gh pr close ${{ github.event.pull_request.number }} --comment "Spam detected"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}