From 3fdb4b9a6b2e2707d1400808149b43f838984321 Mon Sep 17 00:00:00 2001 From: phips28 Date: Fri, 3 Apr 2020 12:40:31 +0200 Subject: [PATCH] test checkout v2 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2fa7913..bd84f83 100644 --- a/index.js +++ b/index.js @@ -55,12 +55,13 @@ Toolkit.run(async tools => { newVersion = `${process.env['INPUT_TAG-PREFIX']}${newVersion}` console.log('new version:', newVersion) // await tools.runInWorkspace('git', ['commit', '-a', '-m', `ci: ${commitMessage} ${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')