Skip to content

Commit 975e2a0

Browse files
committed
Adds workflow to run shellcheck
Lints shell scripts using [shellcheck](https://github.com/koalaman/shellcheck). There are other options out there for github actions that run shellcheck and some appear more configurable, but `bewuethr/shellcheck-action@v2` was the first one I found that worked.
1 parent fc48387 commit 975e2a0

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
on:
3+
- push
4+
- pull_request
5+
6+
jobs:
7+
shellcheck:
8+
name: ShellCheck
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Run ShellCheck
13+
uses: bewuethr/shellcheck-action@v2

src/deploy-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ else
1616
exit 2
1717
fi
1818

19-
encodedConfigContent=$(base64 $nginxConfigurationFile)
19+
encodedConfigContent=$(base64 "$nginxConfigurationFile")
2020
echo "Base64 encoded NGINX configuration content"
2121
echo "$encodedConfigContent"
2222
echo ""

0 commit comments

Comments
 (0)