From a5b2f289e950cd796c73470cbe722cac37445f98 Mon Sep 17 00:00:00 2001 From: phips28 Date: Fri, 3 Apr 2020 13:04:35 +0200 Subject: [PATCH] test checkout v2 --- .github/workflows/push.yml | 2 +- index.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 8ce14ae..ed45934 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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@checkout_v2" with: diff --git a/index.js b/index.js index 2fca160..78d2d28 100644 --- a/index.js +++ b/index.js @@ -54,13 +54,12 @@ 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) - console.log('before remoteRepo') + 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')) await tools.runInWorkspace('git', ['tag', newVersion]) await tools.runInWorkspace('git', ['push', remoteRepo, '--follow-tags']) await tools.runInWorkspace('git', ['push', remoteRepo, '--tags']) - console.log('after git push') } catch (e) { tools.log.fatal(e) tools.exit.failure('Failed to bump version')