mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-07 11:23:18 +08:00
Update artifact-tests.yml
This commit is contained in:
7
.github/workflows/artifact-tests.yml
vendored
7
.github/workflows/artifact-tests.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user