Skip to content

Commit

Permalink
Fix installing shfmt (#24)
Browse files Browse the repository at this point in the history
* Fix installing shfmt

* If you're going to be annoying I'll just run you from Docker
  • Loading branch information
jordemort authored Mar 15, 2022
1 parent 66b7381 commit e351e6c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/suggestions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,15 @@ jobs:
with:
submodules: false

- uses: actions/setup-go@v2
- run: |
echo "$HOME/go/bin" >> "$GITHUB_PATH"
GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest
- name: install shellcheck
run: |
scversion="latest"
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv
sudo cp "shellcheck-${scversion}/shellcheck" /usr/local/bin/
rm -rf "shellcheck-${scversion}/shellcheck"
- run: shellcheck -x -f diff $(shfmt -f .) | patch -p1
- run: shfmt -i 2 -ci -w .
- run: docker run --rm -v "$PWD:/mnt" -w /mnt mvdan/shfmt:v3 -i 2 -ci -w .

- name: suggester / shellcheck
uses: reviewdog/action-suggester@v1
Expand Down

0 comments on commit e351e6c

Please sign in to comment.