ci: use .env
This commit is contained in:
parent
2dec956a17
commit
0a1cdc7a58
1 changed files with 3 additions and 1 deletions
|
|
@ -107,7 +107,9 @@ async function main() {
|
||||||
|
|
||||||
console.log(`📬 Creating pull request...`)
|
console.log(`📬 Creating pull request...`)
|
||||||
const prUrl =
|
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(`✅ Pull request created: ${prUrl}`)
|
||||||
console.log(`🎉 Done!`)
|
console.log(`🎉 Done!`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue