Merge branch 'main' into joshmgross/reusable-inputs-outputs

This commit is contained in:
Josh Gross
2023-02-06 17:32:54 -05:00
10 changed files with 32 additions and 42 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@github/actions-workflow-parser",
"version": "0.1.118",
"version": "0.1.120",
"license": "MIT",
"type": "module",
"source": "./src/index.ts",
@@ -40,7 +40,7 @@
"watch": "tsc --build tsconfig.build.json --watch"
},
"dependencies": {
"@github/actions-expressions": "^0.1.118",
"@github/actions-expressions": "^0.1.120",
"cronstrue": "^2.21.0",
"yaml": "^2.0.0-8"
},
@@ -2,7 +2,6 @@ import {TemplateContext} from "../../templates/template-context";
import {TemplateToken} from "../../templates/tokens";
import {TokenType} from "../../templates/tokens/types";
import {ReusableWorkflowJob} from "../workflow-template";
import {convertOn} from "./events";
import {handleTemplateTokenErrors} from "./handle-errors";
import {convertWorkflowJobInputs} from "./job/inputs";
import {convertJobs} from "./jobs";
@@ -30,15 +29,6 @@ export function convertReferencedWorkflow(
}
}
}
if (!onToken) {
return;
}
const events = convertOn(context, onToken);
if (events.workflow_call === undefined) {
context.error(onToken, "workflow_call key is not defined in the referenced workflow.");
}
}
function convertReferencedWorkflowOn(context: TemplateContext, on: TemplateToken, job: ReusableWorkflowJob) {