Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
d25b2890
Commit
d25b2890
authored
Sep 01, 2020
by
neil
Browse files
split shellcheck
parent
d73438a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
.github/workflows/LetsEncrypt.yml
View file @
d25b2890
...
@@ -73,7 +73,7 @@ jobs:
...
@@ -73,7 +73,7 @@ jobs:
Le_HTTPPort
:
8888
Le_HTTPPort
:
8888
steps
:
steps
:
-
name
:
Set git to use LF
-
name
:
Set git to use LF
run
:
|
run
:
|
git config --global core.autocrlf false
git config --global core.autocrlf false
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
Install cygwin base packages with chocolatey
-
name
:
Install cygwin base packages with chocolatey
...
...
.github/workflows/shellcheck.yml
View file @
d25b2890
...
@@ -12,7 +12,7 @@ on:
...
@@ -12,7 +12,7 @@ on:
-
'
**.sh'
-
'
**.sh'
jobs
:
jobs
:
format
Check
:
Shell
Check
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
...
@@ -20,6 +20,11 @@ jobs:
...
@@ -20,6 +20,11 @@ jobs:
run
:
sudo apt-get install -y shellcheck
run
:
sudo apt-get install -y shellcheck
-
name
:
DoShellcheck
-
name
:
DoShellcheck
run
:
shellcheck -V && shellcheck -e SC2181 **/*.sh && echo "shellcheck OK"
run
:
shellcheck -V && shellcheck -e SC2181 **/*.sh && echo "shellcheck OK"
shfmt
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Install shfmt
-
name
:
Install shfmt
run
:
curl -sSL https://github.com/mvdan/sh/releases/download/v3.1.2/shfmt_v3.1.2_linux_amd64 -o ~/shfmt && chmod +x ~/shfmt
run
:
curl -sSL https://github.com/mvdan/sh/releases/download/v3.1.2/shfmt_v3.1.2_linux_amd64 -o ~/shfmt && chmod +x ~/shfmt
-
name
:
shfmt
-
name
:
shfmt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment