deleted: svg_meta.json #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |