-
Notifications
You must be signed in to change notification settings - Fork 128
44 lines (36 loc) · 1.1 KB
/
upgrade-tree-sitter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Upgrade tree-sitter
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 2'
jobs:
upgrade_tree_sitter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- name: Upgrade tree-sitter wasm
run: bash scripts/upgrade-tree-sitter.sh
- name: Verify file changes
uses: tj-actions/verify-changed-files@v17
id: verify-changed-files
with:
files: |
server/parser.info
server/tree-sitter-bash.wasm
- name: Create pull request
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
add-paths: server
title: Auto upgrade tree-sitter-bash parser
commit-message: Auto upgrade tree-sitter-bash parser
token: ${{ secrets.GH_TOKEN }}