aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/system-file-changes.yml
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-03-30 14:25:39 -0400
committerPeter Bengtsson <mail@peterbe.com>2021-03-30 14:25:39 -0400
commit838dbb88de878d9c2f7eb406621dc10bb6df7226 (patch)
treed3554cd88b38d9ef1692ff11b1e561afec82198a /.github/workflows/system-file-changes.yml
parent9174b80a3fbfdf6225a319e50846cb4835db37c8 (diff)
downloadtranslated-content-838dbb88de878d9c2f7eb406621dc10bb6df7226.tar.gz
translated-content-838dbb88de878d9c2f7eb406621dc10bb6df7226.tar.bz2
translated-content-838dbb88de878d9c2f7eb406621dc10bb6df7226.zip
.github/workflows/system-file-changes.yml
Diffstat (limited to '.github/workflows/system-file-changes.yml')
-rw-r--r--.github/workflows/system-file-changes.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/system-file-changes.yml b/.github/workflows/system-file-changes.yml
new file mode 100644
index 0000000000..a4229007a9
--- /dev/null
+++ b/.github/workflows/system-file-changes.yml
@@ -0,0 +1,29 @@
+# This is a copy of the equivalent file in mdn/content.
+# See https://github.com/mdn/content/blob/main/.github/workflows/system-file-changes.yml
+# If you make changes here, make sure it first makes sense in that repo.
+
+name: System file changes
+
+on:
+ pull_request_target:
+ paths:
+ - '.github/workflows/**'
+ - '.github/CODEOWNERS'
+
+jobs:
+ block:
+ # This make sure it only runs on our origin repo
+ # and make an exception for Dependabot.
+ if: github.repository_owner == 'mdn' && github.event.pull_request.user.login != 'dependabot[bot]'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Stop anything and everything
+ run: |
+ # It would be nice if we could disable this workflow if the PR
+ # was made from a branch within the origin repo. But it seems you
+ # can'd do that :(
+ # See https://github.community/t/how-do-you-figure-out-if-a-pr-is-from-a-work-in-pull-request-target-workflows/170001
+
+ echo "If you're an admin, you have you use your admin privileges to override."
+ echo "If you're not an admin, please ping someone for a review."
+ exit 1