Skip to content

The open source coding agent.

TypeScript

ci: use .env

Aiden Cline0a1cdc7a5870
diff --git a/script/sync-zed.ts b/script/sync-zed.ts
index 3ac9ee83a7e..4bbf845462c 100755
--- a/script/sync-zed.ts
+++ b/script/sync-zed.ts
@@ -107,7 +107,9 @@ async function main() {
console.log(`πŸ“¬ Creating pull request...`)
const prUrl =
- await $`GH_TOKEN=${token} 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}"`.text()
+ 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 })
+ .text()
console.log(`βœ… Pull request created: ${prUrl}`)
console.log(`πŸŽ‰ Done!`)