Skip to content

create: 4211117890 #366

create: 4211117890

create: 4211117890 #366

Workflow file for this run

name: Checker
on:
pull_request_target:
branches:
- main
jobs:
checker:
runs-on: ubuntu-latest
permissions:
pull-requests: write
name: PR Checker
steps:
- name: Setup Python Environment
uses: actions/setup-python@main
with:
python-version: "3.14"
- name: Checkout Code
uses: actions/checkout@main
with:
allow-unsafe-pr-checkout: true
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Add RAW Remote
run: |
git remote add raw https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git
git fetch raw
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v47
with:
base_sha: remotes/raw/main
- name: Run Checker
run: |
pip3 install pyyaml IPy netaddr requests
python3 script/checker.py ${{steps.changed-files.outputs.all_changed_files}} > result.txt
- name: Reply to PR
uses: mshick/add-pr-comment@v3
if: always()
with:
message-path: result.txt