Merge branch 'main' into joshmgross/reusable-inputs-outputs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user