From 21696cbf1a596ca7bd2be50122a5b12fad608a6c Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sat, 30 May 2020 11:55:03 +0200 Subject: [PATCH] simplify --- .github/workflows/push.yml | 3 ++- runaction.sh | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index f76d663..a85e862 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -5,7 +5,8 @@ jobs: name: Shellcheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - name: Checkout + uses: actions/checkout@master - name: Run Shellcheck uses: ./ with: diff --git a/runaction.sh b/runaction.sh index 3450120..27eaef1 100755 --- a/runaction.sh +++ b/runaction.sh @@ -11,10 +11,8 @@ statuscode=0 excludes+=( ! -path *./.git/* ) for path in ${INPUT_IGNORE}; do - [[ ${path#./*} != "$path" ]] || path=./${path} - echo "::debug:: Adding '${path}' to excludes" - excludes+=(! -path *"${path}"* ) + excludes+=(! -path *"./${path}/"* ) done readarray -d '' filepaths < <(find . "${excludes[@]}" \