used current branch

This commit is contained in:
darangi 2020-06-23 09:47:21 +01:00
parent 2c1935c07a
commit 1e2178e46c

View File

@ -9,10 +9,10 @@ const packageLockFilePath = path.join(repositoryRootPath, 'package-lock.json');
module.exports = {
switchToMaster: async function() {
const { current } = await git.branch();
if (current !== 'master') {
await git.checkout('master');
if (current !== 'dependency-automation') {
await git.checkout('dependency-automation');
}
await git.pull('origin', 'master');
// await git.pull('origin', 'dependency-automation');
},
makeBranch: async function(dependency) {
const newBranch = `${dependency.moduleName}-${dependency.latest}`;