test checkout v2

This commit is contained in:
phips28 2020-04-03 12:40:31 +02:00
parent a23b6e3498
commit 3fdb4b9a6b
1 changed files with 2 additions and 1 deletions

View File

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