Skip to content

Commit 7230cf1

Browse files
committed
ci: updated GitHub workflow to update LSP
1 parent f96d8e6 commit 7230cf1

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update copilot LSP
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
push:
7+
branches: [beta]
8+
9+
jobs:
10+
update_copilot_lsp:
11+
runs-on: ubuntu-latest
12+
name: Update copilot LSP
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Create directory
18+
run: |
19+
mkdir -p copilot/js
20+
21+
- name: Download latest LSP
22+
run: |
23+
curl -s https://api.github.com/repos/github/copilot-language-server-release/releases/latest | grep "browser_download_url.*copilot-language-server-js-.*zip" | cut -d : -f 2,3 | tr -d \" | wget -vi -
24+
25+
- name: Unzip LSP
26+
run: |
27+
unzip -o copilot-language-server-js-*.zip -d copilot/js
28+
rm copilot-language-server-js-*.zip
29+
30+
- name: Create Pull Request
31+
uses: peter-evans/create-pull-request@v4
32+
with:
33+
add-paths: "copilot/js/*"
34+
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
35+
base: beta
36+
branch: create-pull-request/update-copilot-lsp
37+
commit-message: "feat: update to latest copilot LSP"
38+
reviewers: MunifTanjim,zbirenbaum,AntoineGS
39+
title: "Update copilot LSP"

copilot/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
*
1+
copilot-language-server-*
22
!.gitignore
33
!package.json
4+

0 commit comments

Comments
 (0)