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