# shellcheck 用 shellcheck(v0.10.0)檢查 shell 腳本的 Docker action,映像檔已內建,不用每次下載。沒有符合的檔案就略過。 ```yaml - uses: https://gitea.jsc.idv.tw/actions/shellcheck@v0.0.1 with: files: "*.sh scripts/**/*.sh" severity: warning ``` ## 輸入 |名稱|預設|說明| |---|---|---| |`files`|`*.sh`|要檢查的檔案,空白分隔,可用萬用字元(支援 `**`)| |`severity`|`warning`|回報的最低嚴重度:error、warning、info、style| 圖示:`icon.svg`(頭像用 `icon.png`)。 ## 發版 `main` 的 `ci` 通過後,`cd.yaml` 用 [release-go](https://gitea.jsc.idv.tw/actions/release-go) 算下一個版本並打標籤(只遞增 patch,每位最大 9);只動文件、圖示、測試、`.gitea/`、`go.mod` 時不發版。呼叫端要把 Gitea 變數 `ACTION_SHELLCHECK_VERSION` 改成新標籤才會採用。