Replies: 1 comment 1 reply
-
Just to check: you've read https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-self-hosted-runners, where it says:
... and your requirement is to allow the consumer to do what they don't recommend: to only specify a single label, without also specifying the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to CUE and thus my terminology may be wrong, so apologies in advance!
What I'm trying to achieve is while using this version of the GitHub Actions workflow schema, is to augment the default elements for
runs-on
, which in CUE looks like the following:The snippet above is from the CUE version of the schema (
cue import -f -p github -l #Workflow: jsonschema: - -o -
) in the filegithub-workflow.cue
in the following directory structure:Under
workflows.cue
(plural, top-level) I'm able to successfully do the following:But what I'd want is to input an arbitrary string to be able to reference self-hosted runners. Looking at the schema I noticed that it's possible to just write
["self-hosted", "my-arbitrary-string"]
and that would be fine, but when the workflow starts it gets stuck because there is no runner registered under "self-hosted". I could just register a new runner under that name, but I want to get better at CUE.I'm looking for a way define an override for
runs-on
such that everything that is already defined under the schema will remain so, but that I am able to say that just "my-arbitrary-string" would also be okay to input. Myworkflow.cue
(singular, nested underusr
) looks like this:Ideally I'd love it if I didn't have to create a whole new definition (
#NewNormalJob
) and could just leverage the existing#Workflow
definition, but that may be a pipe dream.Beta Was this translation helpful? Give feedback.
All reactions