检查你的网站项目中是否意外的使用了本地路径。
Tip
所有参数名使用复数形式
| 参数 | 描述 | 默认值 | 是否必须 | 备注 |
|---|---|---|---|---|
formats |
需要检查的文件格式,以 , 分隔 |
html,css,js,mjs,ts,mts |
否 | / |
skip_files |
跳过的文件,以 , 分隔 |
/ | 否 | / |
skip_folders |
跳过的文件夹,以 , 分隔 |
node_modules |
否 | / |
name: 检查本地路径
# GitHub Action DuckDuckStudio/Check_Locale_Paths 版本 3.0.2 示例工作流
# https://github.com/marketplace/actions/check-locale-paths
# 通过 [Apache License v2.0](https://github.com/DuckDuckStudio/Check_Locale_Paths/blob/main/LICENSE) 许可
on:
push:
branches:
- main
pull_request:
permissions: {}
jobs:
check-local-paths:
runs-on: ubuntu-latest
steps:
- name: 检查本地路径
uses: DuckDuckStudio/[email protected]
with:
skip_files: skiped.html
# 默认
# skip_folders: node_modules
# formats: html,css,js,mjs,ts,mts