mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-06 09:24:55 +01:00
ci
This commit is contained in:
@@ -9,7 +9,7 @@ const snapshot = process.argv.includes("--snapshot")
|
|||||||
|
|
||||||
const version = snapshot
|
const version = snapshot
|
||||||
? `0.0.0-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
|
? `0.0.0-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
|
||||||
: await $`git describe --tags --exact-match HEAD`
|
: await $`git describe --tags --abbrev=0`
|
||||||
.text()
|
.text()
|
||||||
.then((x) => x.substring(1).trim())
|
.then((x) => x.substring(1).trim())
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user