diff --git a/build/netlify-docs.js b/build/netlify-docs.js index 7c57537f2..3192e0efd 100644 --- a/build/netlify-docs.js +++ b/build/netlify-docs.js @@ -1,9 +1,13 @@ const sh = require('shelljs'); const GIT_CONTAINS = `git tag --contains ${process.env.COMMIT_REF}`; - const output = sh.exec(GIT_CONTAINS, {async: false, silent:true}).stdout; +console.log('CONTAINS command:', GIT_CONTAINS); +console.log('BRANCH:', process.env.BRANCH); +console.log('OUTPUT', output); + + // if we're on master branch and not on a tagged commit, // error the build so it doesn't redeploy the docs if (process.env.BRANCH === 'master' && output === '') {