Github recently added a new workflow setting: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-using-an-environment-without-creating-a-deployment which allows workflows to run in an environment without also creating a deployment.
Act --validate --strict currently fails here as this new property is not a part of act's workflow_schema:
Error: workflow is not valid. 'task.yml': Line: 105 Column 5: Failed to match job-factory: Line: 107 Column 7: Failed to match string: Line: 107 Column 7: Expected a scalar got mapping Line: 107 Column 7: Failed to match job-environment-mapping: Line: 108 Column 7: Unknown Property deployment
https://github.com/nektos/act/blob/master/pkg/schema/workflow_schema.json
...
"job-environment": {
"description": "The environment that the job references. All environment protection rules must pass before a job referencing the environment is sent to a runner.",
"context": ["github", "inputs", "vars", "needs", "strategy", "matrix"],
"one-of": ["string", "job-environment-mapping"]
},
"job-environment-mapping": {
"mapping": {
"properties": {
"name": {
"type": "job-environment-name",
"required": true
},
"url": {
"type": "string-runner-context-no-secrets",
"description": "The environment URL, which maps to `environment_url` in the deployments API."
}
}
}
},
...
There needs to be some added property here such as:
"mapping": {
"properties": {
"name": {
"type": "job-environment-name",
"required": true
},
"deployment": {
"type": "boolean"
},
"url": {
"type": "string-runner-context-no-secrets",
"description": "The environment URL, which maps to `environment_url` in the deployments API."
}
}
}
Github recently added a new workflow setting: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-using-an-environment-without-creating-a-deployment which allows workflows to run in an environment without also creating a deployment.
Act --validate --strict currently fails here as this new property is not a part of act's workflow_schema:
Error: workflow is not valid. 'task.yml': Line: 105 Column 5: Failed to match job-factory: Line: 107 Column 7: Failed to match string: Line: 107 Column 7: Expected a scalar got mapping Line: 107 Column 7: Failed to match job-environment-mapping: Line: 108 Column 7: Unknown Property deploymenthttps://github.com/nektos/act/blob/master/pkg/schema/workflow_schema.json
There needs to be some added property here such as: