1
0
mirror of https://github.com/videojs/video.js.git synced 2025-03-17 21:18:27 +02:00

chore(netlify): add some debug info in the netlify command (#4862)

This commit is contained in:
Gary Katsevman 2018-01-05 16:42:11 -05:00 committed by GitHub
parent baf0982515
commit 8f450ea0b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 === '') {