mirror of
https://github.com/sindresorhus/awesome.git
synced 2025-11-14 20:48:31 +05:30
feat: add spam detector GH action
This commit is contained in:
parent
d1d8343688
commit
56c8d7ed68
1 changed files with 26 additions and 0 deletions
26
.github/workflows/spam_detector.yaml
vendored
Normal file
26
.github/workflows/spam_detector.yaml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Spam Detection
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 17 * * 1-5' # Every weekday (Monday-Friday) at 5 PM
|
||||
workflow_dispatch: # Allows you to manually trigger the workflow as needed.
|
||||
jobs:
|
||||
detect-spam:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
discussions: write
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Cache cursor
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .github/cursor_cache
|
||||
key: ${{ runner.os }}-cursor-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cursor-
|
||||
- name: Spam Detection
|
||||
uses: Sambhaji-Patil/Auto-Hide-Spam-Comments@v1.0.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue