diff --git a/.github/workflows/rescript-deno-ci.yml b/.github/workflows/rescript-deno-ci.yml index a7d6e89..8d28fcc 100644 --- a/.github/workflows/rescript-deno-ci.yml +++ b/.github/workflows/rescript-deno-ci.yml @@ -21,7 +21,7 @@ jobs: deno-version: v1.x - name: Deno lint - run: 'if ls **/*.ts >/dev/null 2>run: deno lint1 || ls *.ts >/dev/null 2>run: deno lint1; then deno lint; else echo "no TS sources to lint"; fi' + run: if find . -name "*.ts" -not -path "./.git/*" | grep -q .; then deno lint; else echo "no TS sources to lint"; fi - name: Deno fmt check run: deno fmt --check