checkout current branch

This commit is contained in:
phips28 2019-10-27 01:54:32 +02:00
parent ae38bb6a26
commit 8880505758
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ Toolkit.run(async tools => {
await tools.runInWorkspace('git', ['config', 'user.name', '"Automated Version Bump"'])
await tools.runInWorkspace('git', ['config', 'user.email', '"gh-action-bump-version@users.noreply.github.com"'])
const currentBranch = /refs\/[a-zA-Z]+\/(.*)/.exec(process.env.GITHUB_REF)
const currentBranch = /refs\/[a-zA-Z]+\/(.*)/.exec(process.env.GITHUB_REF)[1]
console.log('currentBranch:', currentBranch)
await tools.runInWorkspace('git', ['checkout', currentBranch])
await tools.runInWorkspace('npm',