Update git rev checking
This commit is contained in:
parent
e2fd239e37
commit
34682afd1e
|
@ -3,6 +3,7 @@ import episode
|
||||||
import future
|
import future
|
||||||
import jester
|
import jester
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import random
|
import random
|
||||||
import strutils
|
import strutils
|
||||||
import times
|
import times
|
||||||
|
@ -49,12 +50,10 @@ proc `%!`(why: string): JsonNode =
|
||||||
"error": why
|
"error": why
|
||||||
}
|
}
|
||||||
|
|
||||||
const gitHash = staticExec "git rev-parse HEAD"
|
|
||||||
|
|
||||||
let myHeaders = {
|
let myHeaders = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"X-Powered-By": "Nim and Jester",
|
"X-Powered-By": "Nim and Jester",
|
||||||
"X-Git-Hash": gitHash,
|
"X-Git-Hash": getEnv("GIT_REV"),
|
||||||
}
|
}
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Reference in New Issue