mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-10 20:40:36 +00:00
ci: error github api fail
This commit is contained in:
parent
bf42d8b011
commit
c2208fa1f9
1 changed files with 4 additions and 1 deletions
|
|
@ -90,7 +90,10 @@ if (!snapshot) {
|
|||
}
|
||||
|
||||
const previous = await fetch("https://api.github.com/repos/sst/opencode/releases/latest")
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
if (!res.ok) throw new Error(res.statusText)
|
||||
return res.json()
|
||||
})
|
||||
.then((data) => data.tag_name)
|
||||
|
||||
console.log("finding commits between", previous, "and", "HEAD")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue