checkout the current branch
This commit is contained in:
parent
9124cdaa3c
commit
20091815db
|
@ -13,6 +13,8 @@ jobs:
|
|||
steps:
|
||||
- name: "Checkout source code"
|
||||
uses: "actions/checkout@v1"
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
- name: "Setup Node.js"
|
||||
uses: "actions/setup-node@v1"
|
||||
with:
|
||||
|
|
1
index.js
1
index.js
|
@ -29,7 +29,6 @@ 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"'])
|
||||
|
||||
await tools.runInWorkspace('git', ['checkout', 'master'])
|
||||
await tools.runInWorkspace('npm',
|
||||
['version', '--allow-same-version=true', '--git-tag-version=false', current])
|
||||
console.log('current:', current, '/', 'version:', version)
|
||||
|
|
Loading…
Reference in New Issue