Don't crash on incomplete filter_stack input #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Shellcheck scope.sh | |
on: [push, pull_request] | |
jobs: | |
test_shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install latest stable shellcheck | |
run: | | |
curl -LO "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz" | |
tar xf shellcheck-stable.linux.x86_64.tar.xz | |
- name: Check if scope.sh was changed | |
uses: dorny/paths-filter@v2 | |
id: paths-filter | |
with: | |
filters: | | |
scope: | |
- added|modified: 'ranger/data/scope.sh' | |
- name: Shellcheck scope.sh | |
if: ${{ steps.path-filter.outputs.scope == 'true' }} | |
run: | | |
env PATH=shellcheck-stable:$PATH make test_shellcheck |