GeezerVison is showing github.com — ci: update token var · burka/opencode@6b5a0fb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/sync-zed-extension.yml +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
32 | 32 | ./script/sync-zed.ts ${{ steps.get_tag.outputs.tag }} |
33 | 33 | env: |
34 | 34 | ZED_EXTENSIONS_PAT: ${{ secrets.ZED_EXTENSIONS_PAT }} |
| 35 | + ZED_PR_PAT: ${{ secrets.ZED_PR_PAT }} |
Collapse file
Copy file name to clipboardExpand all lines: script/sync-zed.ts +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -15,6 +15,9 @@ async function main() { |
15 | 15 | const token = process.env.ZED_EXTENSIONS_PAT |
16 | 16 | if (!token) throw new Error("ZED_EXTENSIONS_PAT environment variable required") |
17 | 17 |
|
| 18 | + const prToken = process.env.ZED_PR_PAT |
| 19 | + if (!prToken) throw new Error("ZED_PR_PAT environment variable required") |
| 20 | + |
18 | 21 | const cleanVersion = version.replace(/^v/, "") |
19 | 22 | console.log(`📦 Syncing Zed extension for version ${cleanVersion}`) |
20 | 23 |
|
@@ -108,7 +111,7 @@ async function main() { |
108 | 111 | console.log(`📬 Creating pull request...`) |
109 | 112 | const prResult = |
110 | 113 | 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 }) |
112 | 115 | .nothrow() |
113 | 116 |
|
114 | 117 | if (prResult.exitCode !== 0) { |
|