forked from gonsakon/vibecoding-camp
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 752 Bytes
/
pr-check.yml
File metadata and controls
30 lines (26 loc) · 752 Bytes
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
name: PR Check (Students sign-in rules)
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout (shallow)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Validate PR (only one new students folder, size limit)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
GITHUB_EVENT_PATH: ${{ github.event_path }}
run: node scripts/validate-pr.mjs