RUN apt-get update

This commit is contained in:
phips28 2019-10-26 22:17:33 +02:00
parent fa487b1928
commit bede79d845
1 changed files with 3 additions and 6 deletions

View File

@ -37,15 +37,12 @@ Toolkit.run(async tools => {
console.log('new version:', newVersion)
await tools.runInWorkspace('git', ['commit', '-a', '-m', `"ci: ${commitMessage} ${newVersion}"`])
console.log(process.env.GITHUB_ACTOR)
console.log(process.env.GITHUB_TOKEN.substr(1))
console.log(tools.context.repo)
const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`
console.log('remoteRepo:', remoteRepo)
console.log('remoteRepo:', 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'])
await tools.runInWorkspace('git', [`push "${remoteRepo}"`, '--follow-tags'])
await tools.runInWorkspace('git', [`push "${remoteRepo}"`, '--tags'])
} catch (e) {
tools.log.fatal(e)
tools.exit.failure('Failed to bump version')