summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-29 18:16:09 -0600
committerAiden Cline <[email protected]>2025-12-29 18:16:17 -0600
commit6b5a0fb261af36d97fb39f12480ea9d8da5eb7a5 (patch)
treef1491d3dddd8256290568bc37b77721d9b8cbc09
parent6d93a7bf55442dd39b6ff1285d52576b144e1eb8 (diff)
downloadopencode-6b5a0fb261af36d97fb39f12480ea9d8da5eb7a5.tar.gz
opencode-6b5a0fb261af36d97fb39f12480ea9d8da5eb7a5.zip
ci: update token var
-rw-r--r--.github/workflows/sync-zed-extension.yml1
-rwxr-xr-xscript/sync-zed.ts5
2 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/sync-zed-extension.yml b/.github/workflows/sync-zed-extension.yml
index 9e647b8d9..f14487cde 100644
--- a/.github/workflows/sync-zed-extension.yml
+++ b/.github/workflows/sync-zed-extension.yml
@@ -32,3 +32,4 @@ jobs:
./script/sync-zed.ts ${{ steps.get_tag.outputs.tag }}
env:
ZED_EXTENSIONS_PAT: ${{ secrets.ZED_EXTENSIONS_PAT }}
+ ZED_PR_PAT: ${{ secrets.ZED_PR_PAT }}
diff --git a/script/sync-zed.ts b/script/sync-zed.ts
index 3754fb5ba..151bfe23c 100755
--- a/script/sync-zed.ts
+++ b/script/sync-zed.ts
@@ -15,6 +15,9 @@ async function main() {
const token = process.env.ZED_EXTENSIONS_PAT
if (!token) throw new Error("ZED_EXTENSIONS_PAT environment variable required")
+ const prToken = process.env.ZED_PR_PAT
+ if (!prToken) throw new Error("ZED_PR_PAT environment variable required")
+
const cleanVersion = version.replace(/^v/, "")
console.log(`📦 Syncing Zed extension for version ${cleanVersion}`)
@@ -108,7 +111,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({ ...process.env, GH_TOKEN: token })
+ .env({ ...process.env, GH_TOKEN: prToken })
.nothrow()
if (prResult.exitCode !== 0) {