Skip to content

Instantly share code, notes, and snippets.

@benhorst
Last active September 15, 2016 16:22
Show Gist options
  • Save benhorst/9b4d3cd98472d2a05aece6f01bf3fbd7 to your computer and use it in GitHub Desktop.
Save benhorst/9b4d3cd98472d2a05aece6f01bf3fbd7 to your computer and use it in GitHub Desktop.
#!/bin/bash
master="refs/heads/master"
read local_ref local_sha remote_ref remote_sha
echo $remote_ref
if [ "$remote_ref" = master ]
then
echo "attempting to push master branch, running tests..."
npm run test
fi
exit $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment