test checkout v2

This commit is contained in:
phips28 2020-04-03 12:48:15 +02:00
parent 3f95ad9d4e
commit a88ebf2f19
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ Toolkit.run(async tools => {
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)[1]
console.log('currentBranch:', currentBranch, process.env.GITHUB_REF)
console.log('currentBranch:', currentBranch)
console.log('event.pull_request.head.ref:', event.pull_request.head.ref)
// do it in the current checked out github branch (DETACHED HEAD)
// important for further usage of the package.json version