Skip to content

Commit c4de0ac

Browse files
committed
ci: add GitHub token for web UI release download
1 parent ffbc65a commit c4de0ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/quickstart-windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ jobs:
7474
7575
- name: Download and extract web dist.zip
7676
shell: pwsh
77+
env:
78+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7779
run: |
7880
# 获取最新的 release 信息
79-
$latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/DarkSkyTeam/chatgpt-for-bot-webui/releases"
81+
$latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/DarkSkyTeam/chatgpt-for-bot-webui/releases" -Headers @{ Authorization = "Bearer $($env:GH_TOKEN)" }
8082
$zipUrl = $latestRelease[0].assets[0].browser_download_url
8183
8284
# 下载 dist.zip 文件

0 commit comments

Comments
 (0)