Skip to content

Commit 4704d0d

Browse files
authored
fix(compile.ps1): Make it work in GHA (#308)
* fix(compile.ps1): Make it work in GHA * Bump cpp grammar
1 parent 20fbbb8 commit 4704d0d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

script/compile.ps1

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ try {
1111
if (!$base) {
1212
$base = "origin/master"
1313
}
14-
$code = "(tree-sitter-langs-compile-changed-or-all \`"$base\`")"
14+
if ($Env:GITHUB_WORKSPACE) {
15+
$code = "(tree-sitter-langs-compile-changed-or-all `"$base`")"
16+
} else {
17+
$code = "(tree-sitter-langs-compile-changed-or-all \`"$base\`")"
18+
}
1519
}
1620
default { $code = "(tree-sitter-langs-compile '$lang)" }
1721
}

0 commit comments

Comments
 (0)