DuckDuckStudio/Check_Locale_Paths

检查你的网站项目中是否意外的使用了本地路径。

★ 1Forks 0JavaScriptGitHub ↗Compare

README

Check Locale Paths

检查你的网站项目中是否意外的使用了本地路径。

GitHub Release
反馈Bug🐛 | 使用示例🚀

可用参数

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

星星 🌟

如果您认为本项目对您有帮助,还请给本项目一个小小的 Star 。
星标历史

Contributors

dependabot[bot]DuckDuckStudio

Issues