diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 45093a6..01d096c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,7 +12,7 @@ jobs: steps: - name: "Checkout source code" - uses: "actions/checkout@v1" + uses: "actions/checkout@v2" with: ref: ${{ github.ref }} - name: "cat package.json" @@ -20,7 +20,7 @@ jobs: - name: "Setup Node.js" uses: "actions/setup-node@v1" with: - node-version: 8.10.0 + node-version: 12 - name: "Automated Version Bump" uses: "phips28/gh-action-bump-version@master" with: diff --git a/README.md b/README.md index 1606275..c56c739 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ It is meant to be used on every successful merge to master but you'll need to configured that workflow yourself. You can look to the [`.github/workflows/push.yml`](./.github/workflows/push.yml) file in this project as an example. +Make sure you use the `actions/checkout@v2` action! + ### Workflow * Based on the commit messages, increment the version from the lastest release. diff --git a/index.js b/index.js index 92fb48c..78d2d28 100644 --- a/index.js +++ b/index.js @@ -54,7 +54,6 @@ Toolkit.run(async tools => { newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString().trim() newVersion = `${process.env['INPUT_TAG-PREFIX']}${newVersion}` console.log('new version:', newVersion) - await tools.runInWorkspace('git', ['commit', '-a', '-m', `ci: ${commitMessage} ${newVersion}`]) const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git` // console.log(Buffer.from(remoteRepo).toString('base64')) diff --git a/package-lock.json b/package-lock.json index 4feffe7..d4e0c45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gh-action-bump-version", - "version": "6.0.2", + "version": "6.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7568331..773d9af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gh-action-bump-version", - "version": "6.0.2", + "version": "6.0.5", "repository": { "type": "git", "url": "git+https://github.com/phips28/gh-action-bump-version.git"