From 006facf4d3cd6bcddcea4ee71bd907bc0c713c52 Mon Sep 17 00:00:00 2001 From: thatrichman Date: Sat, 14 Dec 2024 18:57:28 -0500 Subject: [PATCH] test: always use latest github shellcheck artifact --- .../actions/install-shellcheck/action.yaml | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/actions/install-shellcheck/action.yaml b/.github/actions/install-shellcheck/action.yaml index 13ee07c4..abb0f179 100644 --- a/.github/actions/install-shellcheck/action.yaml +++ b/.github/actions/install-shellcheck/action.yaml @@ -3,15 +3,23 @@ description: "Installs ShellCheck. Supports Ubuntu, macOS, and Windows." runs: using: "composite" steps: - - uses: awalsh128/cache-apt-pkgs-action@latest + - name: install shellcheck -- Ubuntu + shell: bash if: runner.os == 'Linux' - with: - packages: shellcheck - version: 1.0 + run: | + gh release download -R koalaman/shellcheck -p 'shellcheck-v*.linux.x86_64.tar.xz' -O shellcheck-latest.tar.xz + tar -xvf shellcheck-latest.tar.xz + chmod +x ./shellcheck + echo ${{github.workspace}} >> "$GITHUB_PATH" + export PATH="$PATH":"$(pwd)" - name: install shellcheck -- macOS shell: bash if: runner.os == 'macOS' - run: brew install shellcheck + run: | + gh release download -R koalaman/shellcheck -p 'shellcheck-v*.darwin.aarch64.tar.xz' -O shellcheck-latest.tar.xz + tar -xvf shellcheck-latest.tar.xz + chmod +x ./shellcheck + echo ${{github.workspace}} >> "$GITHUB_PATH" - name: install shellcheck -- Windows if: runner.os == 'Windows' shell: powershell @@ -19,7 +27,3 @@ runs: gh release download -R koalaman/shellcheck -p 'shellcheck-v*.zip' -O shellcheck-latest.zip 7z x shellcheck-latest.zip Add-Content $env:GITHUB_PATH "$(Get-Location).Path" - - name: test for shellcheck - Windows - shell: powershell - if: runner.os == 'Windows' - run: where.exe shellcheck