From 3fa2dbbdf5a1220763c7c7bef1bca05a6ac58c58 Mon Sep 17 00:00:00 2001 From: Kreyren Date: Tue, 11 Feb 2020 18:31:44 +0000 Subject: [PATCH] saga --- .github/workflows/bash.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bash.yml b/.github/workflows/bash.yml index df81241..e0543bb 100644 --- a/.github/workflows/bash.yml +++ b/.github/workflows/bash.yml @@ -12,9 +12,8 @@ jobs: lint: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 - name: Installing dependencies.. - run: if ! apt list --installed | grep -qP ".*shellcheck.*"; then apt install -y shellcheck; fi - - name: Trying to find my repository - run: ls -la {/home/runner/work/_PipelineMapping/RXT0112/Zernit,/home/runner/work/Zernit,/home/runner/work/Zernit/Zernit} ; exit 1 + run: if ! apt list --installed 2>/dev/null | grep -q ".*shellcheck.*"; then apt install -y shellcheck; fi - name: Linting.. - run: for file in $(git --no-pager diff --name-only origin/master | ggrep -o ".*\.bash"); do shellcheck --external-sources --shell=bash "$file";done \ No newline at end of file + run: for file in $(git --git-dir="$GITHUB_WORKSPACE/.git" --no-pager diff --name-only origin/master | ggrep -o ".*\.bash"); do shellcheck --external-sources --shell=bash "$file";done \ No newline at end of file