cpp-linter / cpp-linter-action

A Github Action for linting C/C++ code integrating clang-tidy and clang-format to collect feedback provided in the form of file-annotations, thread-comments, workflow step-summary, and Pull Request reviews.

Home Page:https://cpp-linter.github.io/cpp-linter-action/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unexpected `minimun-version` field on latest v2 release

francesco-furlan opened this issue · comments

It seems #210 broke the action

Error: cpp-linter/cpp-linter-action/v2/action.yml (Line: 221, Col: 5): Unexpected value 'minimum-version'
Error: cpp-linter/cpp-linter-action/v2/action.yml (Line: 225, Col: 5): Unexpected value 'minimum-version'
Error: cpp-linter/cpp-linter-action/v2/action.yml (Line: 229, Col: 5): Unexpected value 'minimum-version'
Error: GitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid. cpp-linter/cpp-linter-action/v2/action.yml (Line: 221, Col: 5): Unexpected value 'minimum-version',cpp-linter/cpp-linter-action/v2/action.yml (Line: 225, Col: 5): Unexpected value 'minimum-version',cpp-linter/cpp-linter-action/v2/action.yml (Line: 229, Col: 5): Unexpected value 'minimum-version'
   at GitHub.DistributedTask.ObjectTemplating.TemplateValidationErrors.Check()
   at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Error: Failed to load cpp-linter/cpp-linter-action/v2/action.yml

I am having the same issue.

Sorry for the issue, please use cpp-linter/cpp-linter-action@v2.10.0 instead of cpp-linter/cpp-linter-action@v2.

I found it was because our test action was not triggered recently and I also have the same issue as our users reported when I manually run it.

https://github.com/cpp-linter/test-cpp-linter-action/actions/runs/8356840074

I revert the issue changes via #215 and published a new release v2.10.2

Right now the v2 version is back to work and you can use cpp-linter/cpp-linter-action@v2.

It's a shame. All I wanted to was generate a doc from the action.yml spec. This was so we could reduce the duplicated info... I'll find a different way to do that where the superfluous data (like minimum-version) is stored in a different file...

Sorry for the inconvenience. Big thanks to @shenxianpeng for prompt response and fix!

Thanks for the quickfix!