Skip to content

Commit 35a99d4

Browse files
committed
fix(ci): ensure util.lua is committed, split util.lua job
1 parent 3f106ff commit 35a99d4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/update-copilot-nodejs.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
2121
- name: Download latest LSP
2222
run: |
2323
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: Update version in util.lua
26+
run: |
2427
COPILOT_LATEST_RELEASE_VER=$(curl -s https://api.github.com/repos/github/copilot-language-server-release/releases | jq -r '.[0].tag_name') && sed -i.bak -E "s/(version = \")[^\"]+(\",)/\1$COPILOT_LATEST_RELEASE_VER\2/" "lua/copilot/util.lua" && rm lua/copilot/util.lua.bak
28+
2529
- name: Unzip LSP
2630
run: |
2731
unzip -o copilot-language-server-js-*.zip -d copilot/js
@@ -30,7 +34,9 @@ jobs:
3034
- name: Create Pull Request
3135
uses: peter-evans/create-pull-request@v4
3236
with:
33-
add-paths: "copilot/js/*"
37+
add-paths: |
38+
copilot/js/*
39+
lua/copilot/util.lua
3440
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3541
base: master
3642
branch: create-pull-request/update-copilot-lsp

0 commit comments

Comments
 (0)