瀏覽代碼

ci: fix env

Aiden Cline 1 月之前
父節點
當前提交
aa16610021
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      script/sync-zed.ts

+ 1 - 1
script/sync-zed.ts

@@ -108,7 +108,7 @@ async function main() {
   console.log(`📬 Creating pull request...`)
   const prResult =
     await $`gh pr create --repo ${UPSTREAM_REPO} --base main --head ${FORK_REPO.split("/")[0]}:${branchName} --title "Update ${EXTENSION_NAME} to v${cleanVersion}" --body "Updating OpenCode extension to v${cleanVersion}"`
-      .env({ GH_TOKEN: token })
+      .env({ ...process.env, GH_TOKEN: token })
       .nothrow()
 
   if (prResult.exitCode !== 0) {