UNPKG

sugos-travis

Version:
17 lines (14 loc) 378 B
const exec = require('./exec') const {GIT_USER, GIT_EMAIL} = process.env /** * gitconfig を設定する */ function setGitConfig (options = {}) { if (!process.env.CI) { return } exec(`git config --local user.name ${GIT_USER}`, options) exec(`git config --local user.email ${GIT_EMAIL}`, options) exec('git config -l', options) } module.exports = setGitConfig