Skip to content

Commit e1e3b87

Browse files
authored
fix grammar JSON conversion (#78)
1 parent a2d8680 commit e1e3b87

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/convert_grammars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ jobs:
2020
- run: npm install
2121
- name: Run grammar converter and push changes
2222
run: bait run scripts/convert_grammars.bt
23+
env:
24+
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}

scripts/convert_grammars.bt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ fun main() {
2727
os.rmdir_all(target_repo_dir)
2828
}
2929

30-
errors += git_command('clone --depth 1 https://github.com/serkonda7/vscode-vba-json ${target_repo_dir}')
30+
access_token := os.getenv('BOT_TOKEN')
31+
errors += git_command('clone --depth 1 https://${GIT_USER}:${access_token}@github.com/tiabeast/vscode-vba-json.git ${target_repo_dir}')
3132

3233
errors += os.system('npm run convert-yaml')
3334
os.cp('./out', '${target_repo_dir}/syntaxes')

0 commit comments

Comments
 (0)