uBlock Origin breaks "Open image in new tab" when there is a rule to block popups #504
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete Bad Comments | |
on: | |
workflow_dispatch: | |
issue_comment: | |
types: created | |
jobs: | |
check-if-bad-comment: | |
name: Delete Bad Comment | |
runs-on: ubuntu-latest | |
if: >- | |
( | |
(contains(github.event.comment.body, 'Download') || | |
contains(github.event.comment.body, 'install') || | |
contains(github.event.comment.body, 'mediafire') || | |
contains(github.event.comment.body, 'changeme')) && | |
(contains(github.event.comment.body, 'gcc') || | |
contains(github.event.comment.body, 'usx')) | |
) || | |
( | |
contains(github.event.comment.body, 'install') && | |
(contains(github.event.comment.body, 'mediafire') || | |
contains(github.event.comment.body, 'gofile')) | |
) | |
permissions: write-all | |
steps: | |
- name: Echo event comment body | |
run: | | |
echo "${{ github.event.comment.body }}" | |
- name: Delete comments | |
uses: actions-cool/issues-helper@v3 | |
with: | |
actions: 'delete-comment' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
comment-id: ${{ github.event.comment.id }} |