ci(shell-check): 修改配置只检查sh后缀文件

This commit is contained in:
YuleBest committed 2026-02-04 04:28:41 +08:00
1 parent e0fc73c71c
commit a7e841c83b
1 file changed
+4 -2
+4 -2
View File
@@ -1,4 +1,4 @@
name: Shell Check
name: ShellCheck
on:
push:
@@ -17,7 +17,9 @@ jobs:
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
# 只检查以 .sh 结尾的文件
check_all_files_with_extensions: true
additional_extensions: 'sh'
severity: warning
scandir: './'
env:
SHELLCHECK_OPTS: -x