getArtifact() — react Function Reference
Architecture documentation for the getArtifact() function in download-build-artifacts.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 24883978_a238_d729_1971_aa86ee53975b["getArtifact()"] b7e2774f_9b65_2f26_1d36_abceee1db3ae["download-build-artifacts.js"] 24883978_a238_d729_1971_aa86ee53975b -->|defined in| b7e2774f_9b65_2f26_1d36_abceee1db3ae a9106a40_7dcd_d923_0663_c543c16b405d["downloadArtifactsFromGitHub()"] a9106a40_7dcd_d923_0663_c543c16b405d -->|calls| 24883978_a238_d729_1971_aa86ee53975b style 24883978_a238_d729_1971_aa86ee53975b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/release/shared-commands/download-build-artifacts.js lines 68–86
async function getArtifact(workflowRunId, artifactName) {
const res = await exec(
`curl -L ${GITHUB_HEADERS} https://api.github.com/repos/${OWNER}/${REPO}/actions/runs/${workflowRunId}/artifacts?per_page=100&name=${artifactName}`
);
const json = JSON.parse(res.stdout);
const artifact = json.artifacts.find(
_artifact => _artifact.name === artifactName
);
if (artifact == null) {
console.log(
theme`{error The specified workflow run (${workflowRunId}) does not contain any build artifacts.}`
);
process.exit(1);
}
return artifact;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getArtifact() do?
getArtifact() is a function in the react codebase, defined in scripts/release/shared-commands/download-build-artifacts.js.
Where is getArtifact() defined?
getArtifact() is defined in scripts/release/shared-commands/download-build-artifacts.js at line 68.
What calls getArtifact()?
getArtifact() is called by 1 function(s): downloadArtifactsFromGitHub.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free