MCPcopy Create free account
hub / github.com/react/react / getWorkflowId

Function getWorkflowId

scripts/release/shared-commands/download-build-artifacts.js:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37function getWorkflowId() {
38 if (
39 existsSync(join(__dirname, `../../../.github/workflows/${WORKFLOW_ID}`))
40 ) {
41 return WORKFLOW_ID;
42 } else {
43 throw new Error(
44 `Incorrect workflow ID: .github/workflows/${WORKFLOW_ID} does not exist. Please check the name of the workflow being downloaded from.`
45 );
46 }
47}
48
49async function getWorkflowRun(commit) {
50 const res = await exec(

Callers 1

getWorkflowRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected