summaryrefslogtreecommitdiffstats
path: root/.github/workflows/prevent-file-change.yml
blob: 0af3a6cbf4a4a3aaf5e5c96d79e4fc8503a74f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name: prevent-file-change

on:
  pull_request:

jobs:
  check-file-changes:
    runs-on: ubuntu-latest
    steps:
      - name: Prevent file change
        uses: xalvarez/prevent-file-change-action@v1
        with:
          githubToken: ${{ secrets.GITHUB_TOKEN }}
          # Regex, /src/lang/*.json is not allowed to be changed, except for /src/lang/en.json
          pattern: '^(?!src/lang/en\.json$)src/lang/.*\.json$'
          trustedAuthors: UptimeKumaBot