Files
shellcheck/README.md
T
2026-11-05 03:57:45 +00:00

24 lines
996 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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`」的 PR 合併時,`cd.yaml` 用 [release-go](https://gitea.jsc.idv.tw/actions/release-go) 算下一個版本,在 PR 來源分支的最新提交上打標籤(只遞增 patch,每位最大 9);只動文件、圖示、測試、`.gitea/`、`go.mod` 時不發版。直接推送 `main` 不發版。呼叫端要把 Gitea 變數 `ACTION_SHELLCHECK_VERSION` 改成新標籤才會採用。