We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048ce58 commit 7e10ff1Copy full SHA for 7e10ff1
action.yml
@@ -428,5 +428,19 @@ runs:
428
$uv_args = $uv_args | append '-v'
429
}
430
431
+ let local_bin = '~/.local/bin' | path expand
432
+ let tmp_path = if (
433
+ ('${{ runner.os }}' == 'Linux')
434
+ and ($local_bin | path exists)
435
+ and (not ($env.PATH | any {$in == $local_bin}))
436
+ ) {
437
+ # add ~/.local/bin to PATH (temporarily)
438
+ $env.PATH | append $local_bin
439
+ } else {
440
+ $env.PATH
441
+ }
442
+
443
print $"\n(ansi purple)Running cpp-linter(ansi reset)"
- ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args cpp-linter ...$args
444
+ with-env {PATH: $tmp_path} {
445
+ ^$'($env.UV_INSTALL_DIR)/uv' ...$uv_args cpp-linter ...$args
446
0 commit comments