20 lines
561 B
Markdown
20 lines
561 B
Markdown
# 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`)。
|