Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jehfkemsy authored Jul 14, 2019
1 parent fccae7c commit 98be7fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const exec = require("child_process").exec;
http
.createServer(function(req, res) {
req.on("data", function(chunk) {
//get signatures for all repos...note: each repo must have a unique secrete
//get signatures for all repos...note: each repo must have a unique secret
let sig =
"sha1=" +
crypto
Expand All @@ -32,7 +32,7 @@ http
//choose which was updated ... posible bug: two repos get updated at the same time
switch (req.headers["x-hub-signature"]) {
case sig:
exec("cd " + repo + " && git pull && yarn build"); //execute whatever command you want
exec("cd " + repo + " && git pull && yarn build"); //execute whatever command you want here
break;
case sig1:
exec("cd " + repo1 + " && git pull && yarn build");
Expand Down

0 comments on commit 98be7fa

Please sign in to comment.