Browse Source

ci: fix token for gh

Aiden Cline 1 month ago
parent
commit
053a10e515
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/sync-zed.ts

+ 1 - 1
script/sync-zed.ts

@@ -107,7 +107,7 @@ async function main() {
 
   console.log(`📬 Creating pull request...`)
   const prUrl =
-    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}"`.text()
+    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()
 
   console.log(`✅ Pull request created: ${prUrl}`)
   console.log(`🎉 Done!`)