GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: update token var · burka/opencode@6b5a0fb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • sync-zed-extension.yml
  • script
    • sync-zed.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/sync-zed-extension.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/sync-zed-extension.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
./script/sync-zed.ts ${{ steps.get_tag.outputs.tag }}
3333
env:
3434
ZED_EXTENSIONS_PAT: ${{ secrets.ZED_EXTENSIONS_PAT }}
35+
ZED_PR_PAT: ${{ secrets.ZED_PR_PAT }}
Collapse file

‎script/sync-zed.ts‎

Copy file name to clipboardExpand all lines: script/sync-zed.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ async function main() {
1515
const token = process.env.ZED_EXTENSIONS_PAT
1616
if (!token) throw new Error("ZED_EXTENSIONS_PAT environment variable required")
1717

18+
const prToken = process.env.ZED_PR_PAT
19+
if (!prToken) throw new Error("ZED_PR_PAT environment variable required")
20+
1821
const cleanVersion = version.replace(/^v/, "")
1922
console.log(`📦 Syncing Zed extension for version ${cleanVersion}`)
2023

@@ -108,7 +111,7 @@ async function main() {
108111
console.log(`📬 Creating pull request...`)
109112
const prResult =
110113
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}"`
111-
.env({ ...process.env, GH_TOKEN: token })
114+
.env({ ...process.env, GH_TOKEN: prToken })
112115
.nothrow()
113116

114117
if (prResult.exitCode !== 0) {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.