summaryrefslogtreecommitdiffhomepage
path: root/script
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-29 17:31:27 -0600
committerAiden Cline <[email protected]>2025-12-29 17:31:41 -0600
commit0a1cdc7a5870a5cc036b944c4046fee98e42ef55 (patch)
tree4dfe8dadd90d4caaf17381070123b7198b7b44af /script
parent2dec956a17e26aad323835133933bf230e6c8d69 (diff)
downloadopencode-0a1cdc7a5870a5cc036b944c4046fee98e42ef55.tar.gz
opencode-0a1cdc7a5870a5cc036b944c4046fee98e42ef55.zip
ci: use .env
Diffstat (limited to 'script')
-rwxr-xr-xscript/sync-zed.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/sync-zed.ts b/script/sync-zed.ts
index 3ac9ee83a..4bbf84546 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!`)