Skip to content

Commit

Permalink
fix(cli): run init-config in temp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Oct 12, 2024
1 parent 1f2f26d commit 82b255b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
path: ${{runner.tool_cache}}/tree-sitter/cli
key: tree-sitter-cli-${{runner.os}}-${{env.TREE_SITTER_REF}}
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.8
uses: actions-rust-lang/setup-rust-toolchain@v1
if: >-
steps.cache-cli.outputs.cache-hit != 'true' &&
!startsWith(env.TREE_SITTER_REF, 'v')
Expand Down Expand Up @@ -62,6 +62,7 @@ runs:
shell: sh
run: printf '${{runner.tool_cache}}/tree-sitter/cli/bin\n' >> "$GITHUB_PATH"
- name: Configure the parser directories
working-directory: ${{runner.temp}}
shell: bash
run: |-
config="$(tree-sitter init-config | cut -c32- | tr '\\' '/')"
Expand Down

0 comments on commit 82b255b

Please sign in to comment.