Skip to content

Commit

Permalink
Add new workflow to prevent updating users.yml (prettier#11784)
Browse files Browse the repository at this point in the history
Co-authored-by: fisker Cheung <lionkay@gmail.com>
  • Loading branch information
2 people authored and medikoo committed Jan 2, 2024
1 parent 3310504 commit 96158bc
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 96158bc

Please sign in to comment.