-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: workflow is not valid. 'spellCheck.yaml': Line: 37 Column 3: Failed to match on-string-strict: Line: 37 Column 3: Failed to match branch-protection-rule-string: Line: 37 Column 3: Expected a scalar got mapping #2520
Comments
Are you shure that tags-ignore: under pull_request_target is no hallucination from your side. Anyways I used the strict workflow schema, not the permissive one. Those can be swapped out by removing |
Oh, it's definitely a hallucination. I removed it in check-spelling/spell-check-this@d0a6881, but a bunch of people have older copies of the workflow... |
The error message should explain what's wrong as well as how to tolerate hallucinations. The current output does neither. |
It does this, very very very verbose contains tags-ignore, that is in pull_request_target Please refer to I aggreed about schema validation. Here is my estimate
better errors are more work than schemavalidation itself |
I think learning about hallucinations is valuable. I understand I'm asking someone for the more expensive cost, but it is useful. I think adding a newline and a paragraph would go a long way -- it would push the wall of text out and leave the reader with something to do:
|
Yes adding such a block after the schema error makes sense. In my point of view I would point everyone to install either the GitHub Actions (yes this blames even more) or my upcoming runner.server VSCode extension. For anyone not wanting to install the ide, vscode.dev is available without login as well Both show you all schema errors visually. I believe you are aware of the official extension. I'm working more on different things like vscode extensions like the following key points
Regarding act, once my breaking change pr is in I continue here.
|
Bug report info
Command used with act
Describe issue
a workflow that github tolerates breaks
act -l
Link to GitHub repository
https://github.com/microsoft/winget-dsc/blob/1970b700482b76b6733f0d17efd510cad02a6831/.github/workflows/spellCheck.yaml
Workflow content
Relevant log output
Additional information
This patch "fixes" the bug:
I'm not sure why, but GitHub doesn't need it.
The text was updated successfully, but these errors were encountered: