test checkout v2
This commit is contained in:
parent
a23b6e3498
commit
3fdb4b9a6b
3
index.js
3
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')
|
||||
|
|
Loading…
Reference in New Issue