mirror of
https://code.forgejo.org/forgejo/upload-artifact.git
synced 2025-05-17 04:37:48 +02:00
Add artifact-id output to v4-beta (#448)
* Add artifact-id to outputs * ncc --------- Co-authored-by: Rob Herley <robherley@github.com>
This commit is contained in:
parent
f87a4089c5
commit
aa5cae10db
4 changed files with 75 additions and 107 deletions
|
@ -37,12 +37,6 @@ async function run(): Promise<void> {
|
|||
)
|
||||
core.debug(`Root artifact directory is ${searchResult.rootDirectory}`)
|
||||
|
||||
if (searchResult.filesToUpload.length > 10000) {
|
||||
core.warning(
|
||||
`There are over 10,000 files in this artifact, consider creating an archive before upload to improve the upload performance.`
|
||||
)
|
||||
}
|
||||
|
||||
const artifactClient = create()
|
||||
const options: UploadOptions = {}
|
||||
if (inputs.retentionDays) {
|
||||
|
@ -62,8 +56,9 @@ async function run(): Promise<void> {
|
|||
)
|
||||
} else {
|
||||
core.info(
|
||||
`Artifact ${inputs.artifactName} has been successfully uploaded! Final size is ${uploadResponse.size} bytes. Artifact ID is ${uploadResponse.id}}`
|
||||
`Artifact ${inputs.artifactName} has been successfully uploaded! Final size is ${uploadResponse.size} bytes. Artifact ID is ${uploadResponse.id}`
|
||||
)
|
||||
core.setOutput('artifact-id', uploadResponse.id)
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue