Add jobs context (#160)

This commit is contained in:
Laura Yu
2023-02-23 11:19:07 -08:00
committed by GitHub
parent e8902e78d3
commit 6843c36809
5 changed files with 202 additions and 0 deletions
@@ -7,6 +7,7 @@ import {getEnvContext} from "./env";
import {getGithubContext} from "./github";
import {getInputsContext} from "./inputs";
import {getJobContext} from "./job";
import {getJobsContext} from "./jobs";
import {getMatrixContext} from "./matrix";
import {getNeedsContext} from "./needs";
import {getStepsContext} from "./steps";
@@ -61,6 +62,9 @@ function getDefaultContext(name: string, workflowContext: WorkflowContext, mode:
case "job":
return getJobContext(workflowContext);
case "jobs":
return getJobsContext(workflowContext);
case "matrix":
return getMatrixContext(workflowContext, mode);