-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
31 lines (26 loc) · 880 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Run ShellCheck
author: Benjamin Wuethrich
description: Run ShellCheck on all shell files
branding:
icon: terminal
color: green
runs:
using: composite
steps:
- name: Install ShellCheck
shell: bash
env:
# yamllint disable-line rule:line-length
SC_URL: https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.xz
run: |
echo "Installing ShellCheck..." >&2
mkdir --parents "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
curl --silent --location "$SC_URL" \
| tar --extract --xz --directory="$HOME/.local/bin" \
--strip-components=1 shellcheck-v0.10.0/shellcheck
shellcheck --version >&2
- name: Run ShellCheck
shell: bash
run: |
"$GITHUB_ACTION_PATH/runshellcheck"