diff --git a/actions-workflow-parser/src/templates/template-reader.ts b/actions-workflow-parser/src/templates/template-reader.ts index e44a263..7d5bce0 100644 --- a/actions-workflow-parser/src/templates/template-reader.ts +++ b/actions-workflow-parser/src/templates/template-reader.ts @@ -133,7 +133,7 @@ class TemplateReader { else { this._context.error(mapping, "A mapping was not expected"); - while (this._objectReader.allowMappingEnd()) { + while (!this._objectReader.allowMappingEnd()) { this.skipValue(); this.skipValue(); }