Add new workflow to prevent updating users.yml (#11784)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
1 parent
378370a01e
commit
2bca9d65f4
1 file changed
+17
@@ -0,0 +1,17 @@
|
||||
name: Prevent File change
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "website/data/users.yml"
|
||||
|
||||
jobs:
|
||||
prevent-add-users:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Prevent file change
|
||||
uses: xalvarez/prevent-file-change-action@v1
|
||||
with:
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
pattern: website/data/users.yml
|
||||
Reference in new issue
Block a user