Skip to content

CodelyTV/check-critical-files

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘ Check critical files

codely.tv CodelyTV Courses GitHub Action version

Warns you when critical files are modified

πŸš€ Usage

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 accepts html format.

βš–οΈ License

MIT