Explicitly define type in each job
This commit is contained in:
@@ -44,6 +44,7 @@ export type BaseJob = {
|
|||||||
|
|
||||||
// `job-factory` in the schema
|
// `job-factory` in the schema
|
||||||
export type Job = BaseJob & {
|
export type Job = BaseJob & {
|
||||||
|
type: "job";
|
||||||
env?: MappingToken;
|
env?: MappingToken;
|
||||||
environment?: TemplateToken;
|
environment?: TemplateToken;
|
||||||
"runs-on"?: TemplateToken;
|
"runs-on"?: TemplateToken;
|
||||||
@@ -55,6 +56,7 @@ export type Job = BaseJob & {
|
|||||||
|
|
||||||
// `workflow-job` in the schema
|
// `workflow-job` in the schema
|
||||||
export type ReusableWorkflowJob = BaseJob & {
|
export type ReusableWorkflowJob = BaseJob & {
|
||||||
|
type: "reusableWorkflowJob";
|
||||||
uses: StringToken;
|
uses: StringToken;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user