mirror of https://github.com/actions/toolkit
Update artifact-tests.yml
parent
a3053b5cc2
commit
c390199be6
|
@ -68,15 +68,10 @@ jobs:
|
||||||
const uploadResult = await artifact.create().uploadArtifact(artifactName, fileContents, './')
|
const uploadResult = await artifact.create().uploadArtifact(artifactName, fileContents, './')
|
||||||
console.log(uploadResult)
|
console.log(uploadResult)
|
||||||
|
|
||||||
const success = uploadResult.success
|
|
||||||
const size = uploadResult.size
|
const size = uploadResult.size
|
||||||
const id = uploadResult.id
|
const id = uploadResult.id
|
||||||
|
|
||||||
if (!success) {
|
console.log(`Successfully uploaded artifact ${id}`)
|
||||||
throw new Error('Failed to upload artifact')
|
|
||||||
} else {
|
|
||||||
console.log(`Successfully uploaded artifact ${id}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
verify:
|
verify:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue