yet another commit
This commit is contained in:
parent
64c0ce84bb
commit
3df537cac8
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ http.createServer(function (req, res) {
|
|||
req.on('data', function (chunk) {
|
||||
let sig = "sha1=" + crypto.createHmac('sha1', secret).update(chunk.toString()).digest('hex')
|
||||
|
||||
console.log("Got a request!")
|
||||
console.log(`Got a request! comparing ${proces.env.GITHUB_WEBHOOK} \n==\n ${req.headers["x-hub-signature"]}`)
|
||||
if (req.headers["x-hub-signature"] == sig) {
|
||||
console.log("updating moover...")
|
||||
exec("pm2 stop 'MOOver - main' && " + " cd " + repo + "&& git pull" + " && npm install" + " pm2 start 'MOOver - main'")
|
||||
|
|
Loading…
Reference in a new issue