From 0a1cdc7a5870a5cc036b944c4046fee98e42ef55 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Mon, 29 Dec 2025 17:31:27 -0600 Subject: [PATCH] ci: use .env --- script/sync-zed.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/sync-zed.ts b/script/sync-zed.ts index 3ac9ee83a7..4bbf845462 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!`)