Skip to content

Commit

Permalink
Adapt workflow to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
outlyer-net committed Apr 25, 2024
1 parent 06f9708 commit 4f51159
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-20.04
env:
shellcheck_tarball: shellcheck-stable.linux.x86_64.tar.xz
shellcheck_url: https://github.com/koalaman/shellcheck/releases/download/stable/${{ env.shellcheck_tarball }}
shellcheck_url: https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz

steps:
# Use the latest stable version directly instead of downstream
Expand All @@ -27,8 +27,12 @@ jobs:
- run: wget ${{ env.shellcheck_url }}
- run: tar xvf ${{ env.shellcheck_tarball }}
# After checkout we won't necessarily be on the same directory
# Can't move to /usr/bin on GitHub
- name: Ensure shellcheck is accessible
run: test -x shellcheck-stable/shellcheck && mv shellcheck-stable/shellcheck /usr/bin/
run: |
test -x shellcheck-stable/shellcheck
mkdir -p /usr/local/bin
mv shellcheck-stable/shellcheck /usr/local/bin/
- name: Checkout repository
uses: actions/checkout@v3
Expand Down

0 comments on commit 4f51159

Please sign in to comment.