Skip to content

Commit a0aacbd

Browse files
fix(ci): repair mangled deno-lint guard (#24)
Previous PR #23's sed corrupted the run: line (sed treated 2>&1's & as the match). Replaces with a clean find-based guard.
1 parent 7ecd82a commit a0aacbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/rescript-deno-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
deno-version: v1.x
2222

2323
- name: Deno lint
24-
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'
24+
run: if find . -name "*.ts" -not -path "./.git/*" | grep -q .; then deno lint; else echo "no TS sources to lint"; fi
2525

2626
- name: Deno fmt check
2727
run: deno fmt --check

0 commit comments

Comments
 (0)