diff --git a/webhook/index.js b/webhook/index.js index 53f3b57..dbbeea1 100644 --- a/webhook/index.js +++ b/webhook/index.js @@ -8,6 +8,7 @@ app.use(express.json()) app.post('/', (req, res) => { if (req.body.secret != process.env.SECRET) { res.sendStatus(403); + return; } exec("cd .. && git reset --hard && git pull");