調整:第三方 action 與工具的版本也從 Gitea 變數取得
ci / test (pull_request) Failing after 21s

This commit is contained in:
bot
2026-11-05 04:44:33 +00:00
parent 9cbdbb9517
commit 52fe8b1f18
5 changed files with 23 additions and 8 deletions
+5 -1
View File
@@ -1,9 +1,12 @@
name: shellcheck
description: "用 shellcheck 檢查 shell 腳本(Docker action,shellcheck v0.10.0)。沒有符合的檔案就略過。要在 checkout 之後使用"
description: "用 shellcheck 檢查 shell 腳本(Docker action;shellcheck 版本由 version 輸入指定,執行時下載)。沒有符合的檔案就略過。要在 checkout 之後使用"
inputs:
files:
description: "要檢查的檔案,空白分隔,可用萬用字元(相對於儲存庫根目錄,支援 **)"
default: "*.sh"
version:
description: "shellcheck 的版本(例如 v0.10.0),通常用 Gitea 變數 TOOL_SHELLCHECK_VERSION"
required: true
severity:
description: "回報的最低嚴重度:error、warning、info、style"
default: warning
@@ -13,3 +16,4 @@ runs:
args:
- ${{ inputs.files }}
- ${{ inputs.severity }}
- ${{ inputs.version }}