Skip to content

Commit

Permalink
Fix: Update the CI script updating the .wasm file
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Mar 8, 2024
1 parent f1a945c commit 6a5f082
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-tree-sitter-wasm-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ jobs:
# The script generates a new wasm file and replaces the existing one. Git will treat it as a different file even it is generated with the same commit and CLI
# Hence, we only compare the parser.info. It should be enough to tell the difference
files: |
client/parser.info
server/parser.info
- name: Create pull request
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v5
with:
add-paths: |
client/parser.info
client/tree-sitter-bitbake.wasm
server/parser.info
server/tree-sitter-bitbake.wasm
title: Auto update tree-sitter-bitbake wasm file
commit-message: Auto update tree-sitter-bitbake wasm file and parser info
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion scripts/update-tree-sitter-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -euox pipefail
cd "$(dirname "$(readlink -f "$0")")/.."

cd client
cd server
npm install -D tree-sitter-cli https://github.com/tree-sitter-grammars/tree-sitter-bitbake
npx tree-sitter build-wasm node_modules/tree-sitter-bitbake

Expand Down
File renamed without changes.

0 comments on commit 6a5f082

Please sign in to comment.