Skip to content

deleted: svg_meta.json #6

deleted: svg_meta.json

deleted: svg_meta.json #6

Workflow file for this run

name: Vetted PR Check
on:
pull_request:
types: [opened, reopened, edited, synchronize, review_requested]
jobs:
check-staging-only:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
with:
fetch-depth: 0 # Needed to compare full history
- name: Ensure only staging files changed
run: |
# Get the list of files changed in the PR
unvetted=$(git diff --name-only origin/main HEAD \
| grep -E '^(src/.*|docs/.*|lib/.*|other_generated/.*)' || true)
# Remove any changes under staging
unvetted=$(echo "$unvetted" | grep -v '^staging/')
if [[ -n "$unvetted" ]]; then
echo "❌ ERROR: PR contains changes outside ./staging:"
echo "$unvetted"
exit 1
else
echo "✅ Only ./staging files modified. PR passes vetted check."
fi