Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new workflow to prevent updating users.yml #11784

Merged
merged 16 commits into from Apr 2, 2022
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