Skip to content

Commit

Permalink
Update installer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq authored Mar 13, 2023
1 parent e1d41a0 commit 477f55e
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,6 @@ export async function install(
core.debug(`Error during installation: ${error}`)
throw error
} finally {
// Always upload installation log regardless of error
if ((await getOs()) === OSType.linux) {
const artifactClient = artifact.create()
const artifactName = 'install-log'
const files = ['/var/log/cuda-installer.log']
const rootDirectory = '/var/log'
const artifactOptions = {
continueOnError: true
}
const uploadResult = await artifactClient.uploadArtifact(
artifactName,
files,
rootDirectory,
artifactOptions
)
core.debug(`Upload result: ${uploadResult}`)
}
core.debug(`Installation is complete`)
}
}

0 comments on commit 477f55e

Please sign in to comment.