Skip to content

perf: 优化地区正则匹配 #13

perf: 优化地区正则匹配

perf: 优化地区正则匹配 #13

Workflow file for this run

# .github/workflows/build.yml
name: build_script
on:
push:
branches: ['main']
paths:
- 'src/**'
- 'build.js'
workflow_dispatch:
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v6
- name: setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: run build script
run: node build.js
- name: commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add Script/mihomoScript.js
git diff --cached --quiet || (git commit -m "build: 更新脚本" && git push)