Skip to content

Commit d9b1789

Browse files
committed
feat: Add new workflow to block direct module reference changes
1 parent 45d2012 commit d9b1789

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/block-changes.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Block specific changes
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
block-direct-markdown-module-changes:
8+
name: Block modifying Markdown Module Reference files directly
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@4
13+
- name: Check if changes came from nginx.org action
14+
id: check_pr_source
15+
run: |
16+
PR_SRC=$(jq -r ".pull_request.user.login" < "$GITHUB_EVENT_PATH")
17+
echo $PR_SRC
18+

0 commit comments

Comments
 (0)