Browse Source

return after 403

pull/1/head
Chris Mahoney 5 months ago
parent
commit
b9ed992ff3
  1. 1
      webhook/index.js

1
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");

Loading…
Cancel
Save