Warns you when critical files are modified
Create a file named checker.yml
inside the .github/workflows
directory and paste:
name: Check critical files
on: [pull_request]
jobs:
check-critical-files:
runs-on: ubuntu-latest
name: Check for critical files
steps:
- uses: codelytv/check-critical-files@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
critical_message: Take a look, you've commited some <b>critical file</b>
critical_files: |
.env
action.yml
critical_message
acceptshtml
format.