Skip to content

Commit

Permalink
Add new workflow to prevent updating users.yml (#11784)
Browse files Browse the repository at this point in the history
Co-authored-by: fisker Cheung <lionkay@gmail.com>
  • Loading branch information
sosukesuzuki and fisker committed Apr 2, 2022
1 parent c23e24e commit 6d7c8ac
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/prevent-file-change.yml
@@ -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

0 comments on commit 6d7c8ac

Please sign in to comment.