name: Anti-spam on: issues: types: [opened] pull_request: types: [opened, edited] jobs: autoclose: runs-on: ubuntu-latest steps: - name: Anti-spam uses: dessant/repo-lockdown@v2 with: exclude-issue-labels: | bug enhancement issue-lock-reason: spam exclude-pr-labels: | bug enhancement do-not-autoclose pr-labels: spam pr-lock-reason: spam - name: Delete workflow runs uses: Mattraks/delete-workflow-runs@v2 with: token: ${{ github.token }} repository: ${{ github.repository }} retain_days: 0 keep_minimum_runs: 0