Created
August 2, 2018 06:05
-
-
Save qodunpob/70a599f9437d55eb6c472293d70e66ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* current branch name in the module source code repository */ | |
const branch = spawnSync( | |
'git', | |
['symbolic-ref', '--short', 'HEAD'], | |
getSpawnOptions(rootDir, 'pipe') | |
).stdout.toString().trim(); | |
/* branch name in the builds repository */ | |
const buildBranch = branch === 'develop' ? 'master' : branch; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment