change how verison identifier works

This commit is contained in:
Enstrayed
2024-12-29 15:57:58 -08:00
parent 188dba2a4a
commit c1e166d8d4
2 changed files with 2 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ app.post("/api/sync", (rreq,rres) => {
rres.sendStatus(200)
} else if (rreq.headers["x-github-event"] == "push") {
execSync("git pull")
globalVersion = execSync(`git show --oneline -s`).toString().split(" ")[0]
logRequest(rres,rreq,200,"Ran git pull")
rres.sendStatus(200)
} else {