Merge pull request #37 from github/joshmgross/update-job-type

Update references to Job `needs`
This commit is contained in:
Josh Gross
2022-12-06 13:09:18 -05:00
committed by GitHub
3 changed files with 8 additions and 9 deletions
@@ -10,8 +10,8 @@ export function getNeedsContext(workflowContext: WorkflowContext): data.Dictiona
}
for (const jobID of workflowContext.job.needs) {
const job = workflowContext.template?.jobs.find(job => job.id.value === jobID);
d.add(jobID, needsJobContext(job));
const job = workflowContext.template?.jobs.find(job => job.id.value === jobID.value);
d.add(jobID.value, needsJobContext(job));
}
return d;
@@ -142,7 +142,6 @@ jobs:
defaultValueProviders
);
expect(result.length).toBe(1);
expect(result[0]).toEqual({
message: "Value 'test2' is not valid",
severity: DiagnosticSeverity.Error,
+6 -6
View File
@@ -665,9 +665,9 @@
"link": true
},
"node_modules/@github/actions-workflow-parser": {
"version": "0.0.25",
"resolved": "https://npm.pkg.github.com/download/@github/actions-workflow-parser/0.0.25/4ee85278c517247654ab7d5d91dce58176648bf8",
"integrity": "sha512-fq3kL5cUofMyN3djR4wCTfzNzLumYfn0anDvPcbat2iu7LyWxJmB12xNdwoR+t63tVEWbOcP9YP2DB0lWnnp5w==",
"version": "0.0.27",
"resolved": "https://npm.pkg.github.com/download/@github/actions-workflow-parser/0.0.27/7da28182bb856a124acf10ae60d6c1eab80a21cd",
"integrity": "sha512-EKnGr8C2Fe8ksswJXJoewcVtOEJcebDJRHZhgkIhDT74GTLZpXfBbE+tYzQaj2cVu6jylV27oj2otwHYNWSTGA==",
"license": "MIT",
"dependencies": {
"@github/actions-expressions": "*",
@@ -10927,9 +10927,9 @@
}
},
"@github/actions-workflow-parser": {
"version": "0.0.25",
"resolved": "https://npm.pkg.github.com/download/@github/actions-workflow-parser/0.0.25/4ee85278c517247654ab7d5d91dce58176648bf8",
"integrity": "sha512-fq3kL5cUofMyN3djR4wCTfzNzLumYfn0anDvPcbat2iu7LyWxJmB12xNdwoR+t63tVEWbOcP9YP2DB0lWnnp5w==",
"version": "0.0.27",
"resolved": "https://npm.pkg.github.com/download/@github/actions-workflow-parser/0.0.27/7da28182bb856a124acf10ae60d6c1eab80a21cd",
"integrity": "sha512-EKnGr8C2Fe8ksswJXJoewcVtOEJcebDJRHZhgkIhDT74GTLZpXfBbE+tYzQaj2cVu6jylV27oj2otwHYNWSTGA==",
"requires": {
"@github/actions-expressions": "*",
"yaml": "^2.0.0-8"