This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
# shellcheck
|
||||
|
||||
用 shellcheck(v0.10.0)檢查 shell 腳本的 Docker action,映像檔已內建,不用每次下載。沒有符合的檔案就略過。
|
||||
用 shellcheck 檢查 shell 腳本的 Docker action。shellcheck 的版本由 `version` 輸入指定(通常用 Gitea 變數 `TOOL_SHELLCHECK_VERSION`),執行時下載;沒有符合的檔案就略過,也不下載。
|
||||
|
||||
```yaml
|
||||
- uses: https://gitea.jsc.idv.tw/actions/shellcheck@v0.0.1
|
||||
with:
|
||||
files: "*.sh scripts/**/*.sh"
|
||||
severity: warning
|
||||
version: ${{ vars.TOOL_SHELLCHECK_VERSION }}
|
||||
```
|
||||
|
||||
## 輸入
|
||||
@@ -14,6 +15,7 @@
|
||||
|名稱|預設|說明|
|
||||
|---|---|---|
|
||||
|`files`|`*.sh`|要檢查的檔案,空白分隔,可用萬用字元(支援 `**`)|
|
||||
|`version`|是||shellcheck 的版本(例如 `v0.10.0`),通常用 Gitea 變數 `TOOL_SHELLCHECK_VERSION`|
|
||||
|`severity`|`warning`|回報的最低嚴重度:error、warning、info、style|
|
||||
|
||||
## 開發與發版
|
||||
|
||||
Reference in New Issue
Block a user