Skip to content

Add new workflow to block direct module reference changes #2

Add new workflow to block direct module reference changes

Add new workflow to block direct module reference changes #2

Workflow file for this run

name: Block specific changes
on:
pull_request:
jobs:
block-direct-markdown-module-changes:
name: Block modifying Markdown Module Reference files directly
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 # v4.2.2
- name: Check if changes came from nginx.org action
id: check_pr_source
run: |
PR_SRC=$(jq -r ".pull_request.user.login" < "$GITHUB_EVENT_PATH")
echo $PR_SRC