test checkout v2
This commit is contained in:
parent
3f95ad9d4e
commit
a88ebf2f19
3
index.js
3
index.js
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue