Make ossutil executable

This commit is contained in:
Rimo
2020-01-15 17:27:30 +08:00
parent e0feee7e7c
commit b99d85a130
4 changed files with 23 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ async function run(): Promise<void> {
// download
const version = core.getInput('ossutil-version')
await installer.getOssutil(version)
core.info('ossutil is successfully installed')
// config
const endpoint = core.getInput('endpoint')
@@ -23,7 +24,10 @@ async function run(): Promise<void> {
'--sts-token',
stsToken
]
await exec.exec('ossutil', args)
const exitCode = await exec.exec('ossutil', args)
if (exitCode === 0) {
core.info('ossutil config is done')
}
} catch (error) {
core.setFailed(error.message)
}