Open jsoref opened 2 years ago
Hey @jsoref,
Thanks for submitting this! I will mark this as a runner feature and add it to the board :relaxed:
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 15 days.
@nikola-jokic ?
Describe the bug Actions need to be able to access contexts and be run regardless of which event a user chooses to use the action.
To Reproduce Steps to reproduce the behavior:
Annotations
debugjsoref/community-events-action/a/b/c/d/action.yml (Line: 13, Col: 17):
debugjsoref/community-events-action/a/b/c/d/action.yml (Line: 14, Col: 20): debugjsoref/community-events-action/a/b/c/d/action.yml (Line: 18, Col: 18): debugjsoref/community-events-action/a/b/c/d/action.yml (Line: 13, Col: 17): Unrecognized named-value: 'jobs'. Located at position 8 within expression: toJSON(jobs || '')Show more debugjsoref/community-events-action/a/b/c/d/action.yml (Line: 14, Col: 20): Unrecognized named-value: 'secrets'. Located at position 8 within expression: toJSON(secrets || '')Show more debugjsoref/community-events-action/a/b/c/d/action.yml (Line: 18, Col: 18): Unrecognized named-value: 'needs'. Located at position 8 within expression: toJSON(needs || '')Show more debugGitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid. jsoref/community-events-action/a/b/c/d/action.yml (Line: 13, Col: 17): Unrecognized named-value: 'jobs'. Located at position 8 within expression: toJSON(jobs || ''),jsoref/community-events-action/a/b/c/d/action.yml (Line: 14, Col: 20): Unrecognized named-value: 'secrets'. Located at position 8 within expression: toJSON(secrets || ''),jsoref/community-events-action/a/b/c/d/action.yml (Line: 18, Col: 18): Unrecognized named-value: 'needs'. Located at position 8 within expression: toJSON(needs || '') 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)Show more debugFail to load jsoref/community-events-action/a/b/c/d/action.yml
Annotations 8 errors debug jsoref/community-events-action/a/b/c/d/action.yml (Line: 13, Col: 17): debug jsoref/community-events-action/a/b/c/d/action.yml (Line: 14, Col: 20): debug jsoref/community-events-action/a/b/c/d/action.yml (Line: 18, Col: 18): debug jsoref/community-events-action/a/b/c/d/action.yml (Line: 13, Col: 17): Unrecognized named-value: 'jobs'. Located at position 8 within expression: toJSON(jobs || '') debug jsoref/community-events-action/a/b/c/d/action.yml (Line: 14, Col: 20): Unrecognized named-value: 'secrets'. Located at position 8 within expression: toJSON(secrets || '') debug jsoref/community-events-action/a/b/c/d/action.yml (Line: 18, Col: 18): Unrecognized named-value: 'needs'. Located at position 8 within expression: toJSON(needs || '') debug GitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid. jsoref/community-events-action/a/b/c/d/action.yml (Line: 13, Col: 17): Unrecognized named-value: 'jobs'. Located at position 8 within expression: toJSON(jobs || ''),jsoref/community-events-action/a/b/c/d/action.yml (Line: 14, Col: 20): Unrecognized named-value: 'secrets'. Located at position 8 within expression: toJSON(secrets || ''),jsoref/community-events-action/a/b/c/d/action.yml (Line: 18, Col: 18): Unrecognized named-value: 'needs'. Located at position 8 within expression: toJSON(needs || '') 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) debug Fail to load jsoref/community-events-action/a/b/c/d/action.yml
Expected behavior Offer a way to provide a fallback value, e.g.
toJSON(x || '')
Runner Version and Platform
Version of your runner? 2.298.2
OS of the machine running the runner? Linux
What's not working?
Job Log Output
If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.
Runner and Worker's Diagnostic Logs
If applicable, add relevant diagnostic log information. Logs are located in the runner's
_diag
folder. The runner logs are prefixed withRunner_
and the worker logs are prefixed withWorker_
. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.