Skip to content

Commit d3bf017

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

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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: Change directory
18+
run: |
19+
mkdir -p copilot/js
20+
cd copilot/js
21+
22+
- name: Download latest LSP
23+
run: |
24+
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 -
25+
26+
- name: Unzip LSP
27+
run: |
28+
unzip -o copilot-language-server-js-*.zip
29+
rm copilot-language-server-js-*.zip
30+
31+
- name: Create Pull Request
32+
uses: peter-evans/create-pull-request@v4
33+
with:
34+
add-paths: "copilot/js/*"
35+
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
36+
base: beta
37+
branch: create-pull-request/update-copilot-lsp
38+
commit-message: "feat: update to latest copilot LSP"
39+
reviewers: MunifTanjim,zbirenbaum,AntoineGS
40+
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)