forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (50 loc) · 1.94 KB
/
system-file-changes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: System file changes
on:
pull_request_target:
paths:
- '.github/workflows/**'
- '.github/CODEOWNERS'
- '.github/dependabot.yml'
- 'pr-lint/**'
- 'scripts/**'
- package.json
- yarn.lock
jobs:
triage:
# 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:
- uses: hmarr/debug-action@v2
- name: Stop anything and everything
run: |
# echo "Any PR that edits these files should break the build and expect admin overrides"
# echo "PR user?"
# echo ${{ github.event.pull_request.user.login }}
# echo "PR actor?"
# echo ${{ github.actor }}
# echo "Repository owner?"
# echo ${{ github.repository_owner }}
# echo "PR head?"
# echo ${{ github.event.pull_request.head.repo.owner.login }}
# echo "PR base?"
# echo ${{ github.event.pull_request.base.user.login }}
echo "github.event.pull_request.head.repo.full_name?"
echo ${{ github.event.pull_request.head.repo.full_name }}
echo "github.repository?"
echo ${{ github.repository }}
# XXX This is temporarily commented out until we understand better
# how to actually works. We need to test what happens when
# PRs on forks come in that edit any of these files.
# exit 1
- name: Repositories
run: |
echo "Base: ${{ github.event.pull_request.base.repo.full_name }}"
echo "Head: ${{ github.event.pull_request.head.repo.full_name }}"
echo "Repo: ${{ github.repository }}"
- name: Running on a fork?
if: github.event.pull_request.head.repo.full_name != github.repository
run: |
echo "Yes, this is fork"
# exit 1