From 48f01dcbb300848939a575173d2ff132e0220855 Mon Sep 17 00:00:00 2001 From: John Fred Fadrigalan Date: Fri, 3 Feb 2023 17:19:41 +0800 Subject: [PATCH] [CI] fix breaking action https://github.com/Bash-it/bash-it/pull/2173 --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0faab35..5c52151 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,7 +63,11 @@ jobs: run: GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest - name: Install shellcheck - run: brew install shellcheck + env: + scversion: stable # Or latest, vxx, etc + run: | + wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv "shellcheck-${scversion}/shellcheck" + sudo cp "shellcheck-${scversion}/shellcheck" /usr/bin/ - name: Install pre-commit run: python3 -m pip install pre-commit==2.3.0