Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/ci: fix 'hotfix' for GitHub Actions oneof
https://cuelang.org/cl/1194548 upgrade this repo to use the latest version of the GitHub Actions JSON Schema as its source of truth. That same CL also included a 'hotfix' to deal with the fact that CUE does not today properly encode the concept of a oneof from JSON Schema. Discussion on this point is taken up in https://cuelang.org/issue/3165. However the 'hotfix' incorrectly made steps a regular field as part of a job. Generally speaking, constraints in a schema should be optional or required. And in this case it is an optional field because reusable workflows do not specify steps (and there is a constraint that where steps are specified there must be at least one). Fix that by making the hotfix specify the constraint via an optional field. Signed-off-by: Paul Jolly <paul@myitcv.io> Change-Id: I5925aa01e0df3ccf8a54b111314994bc94ddd0e7 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195124 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Jonathan Matthews <github@hello.jonathanmatthews.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information