mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 14:51:03 +00:00
36 lines
812 B
YAML
36 lines
812 B
YAML
name: Validate PR
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, edited, reopened, synchronize]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
check-list:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
ref: ${{ github.event.repository.default_branch }}
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
cd scripts/validate-form
|
|
npm ci
|
|
|
|
- name: Validate PR
|
|
uses: actions/github-script@v9
|
|
with:
|
|
script: |
|
|
const script = require('./scripts/validate-form/main.js')
|
|
await script({github, context, core})
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|