forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Any PR with "dangerous" edits should be considered dangerous
Fixes mdn#2985
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Dangerous file changes | ||
|
||
on: | ||
pull_request_target: | ||
paths: | ||
- '.github/workflows/**' | ||
- '.github/CODEOWNERS' | ||
- '.github/dependabot.yml' | ||
- package.json | ||
- yarn.lock | ||
|
||
jobs: | ||
triage: | ||
# This make sure it only runs on our origin repo | ||
if: github.repository == 'mdn/content' && github.event.pull_request.user.login != 'dependabot' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Stop anything and everything | ||
run: | | ||
echo "Any PR that edits these files should break the build and expect admin overrides" | ||
echo ${{ github.event.pull_request }} | ||
exit 1 |