Skip to content

Instantly share code, notes, and snippets.

@abnerCrack
Created May 29, 2017 16:22
Show Gist options
  • Save abnerCrack/8866b9cf9f1bae894bb52c2eb943bc76 to your computer and use it in GitHub Desktop.
Save abnerCrack/8866b9cf9f1bae894bb52c2eb943bc76 to your computer and use it in GitHub Desktop.
test.js
handler.on('push', function (event) {
console.log('Received a push event for %s to %s',
event.payload.repository.name,
event.payload.ref)
run_cmd('sh', ['./update.sh'], function(text){ console.log(text) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment