Vendored snapshot of upload-artifact@v7 (no upstream history)
Check dist/ / check-dist (push) Failing after 6m57s
Code scanning - action / CodeQL-Build (push) Failing after 33m29s
Licensed / Check licenses (push) Failing after 2m48s
Test Proxy / test-proxy-upload (push) Failing after 1m0s
Test / Build (ubuntu-latest) (push) Failing after 5m58s
Test / Upload HTML Report (push) Failing after 5m17s
Test / Build (macos-latest) (push) Canceled after 0s
Test / Build (windows-latest) (push) Canceled after 0s
Test / Merge (push) Canceled after 0s
Test / Cleanup Artifacts (push) Canceled after 0s

This commit is contained in:
signalhub-ci-mirror
2026-09-18 18:02:11 +00:00
parent 0298a45942
commit 275c6d8ec7
42 changed files with 272679 additions and 7586 deletions
+29
View File
@@ -0,0 +1,29 @@
import * as core from '@actions/core'
import * as github from '@actions/github'
import artifact, {UploadArtifactOptions} from '@actions/artifact'
export async function uploadArtifact(
artifactName: string,
filesToUpload: string[],
rootDirectory: string,
options: UploadArtifactOptions
) {
const uploadResponse = await artifact.uploadArtifact(
artifactName,
filesToUpload,
rootDirectory,
options
)
core.info(
`Artifact ${artifactName} has been successfully uploaded! Final size is ${uploadResponse.size} bytes. Artifact ID is ${uploadResponse.id}`
)
core.setOutput('artifact-id', uploadResponse.id)
core.setOutput('artifact-digest', uploadResponse.digest)
const repository = github.context.repo
const artifactURL = `${github.context.serverUrl}/${repository.owner}/${repository.repo}/actions/runs/${github.context.runId}/artifacts/${uploadResponse.id}`
core.info(`Artifact download URL: ${artifactURL}`)
core.setOutput('artifact-url', artifactURL)
}