checkout the current branch

This commit is contained in:
phips28 2019-10-27 01:39:43 +02:00
parent 9124cdaa3c
commit 20091815db
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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)