Skip to content
Snippets Groups Projects
Commit 1822f2a5 authored by Joe Burnett's avatar Joe Burnett
Browse files

Remove and inline constants

parent a4612f40
No related branches found
No related tags found
1 merge request!109Combine step and definition structures
......@@ -322,7 +322,7 @@ func (s *Step) compileScriptKeywordToStep() error {
if len(s.Inputs) != 0 {
return fmt.Errorf("the `script` keyword cannot be used with `inputs`")
}
s.Step = scriptStep
s.Step = "https://gitlab.com/components/script@main"
s.Inputs = map[string]any{
"script": s.Script,
}
......@@ -341,7 +341,7 @@ func (s *Step) compileActionKeywordToStep() error {
if s.Script != nil && *s.Script != "" {
return fmt.Errorf("the `action` keyword cannot be used with the `script` keyword")
}
s.Step = actionStep
s.Step = "https://gitlab.com/components/action-runner@main"
s.Inputs = map[string]any{
"action": s.Action,
"inputs": s.Inputs,
......
package schema
const (
yamlStringTag = "!!str"
yamlMapTag = "!!map"
delegate = "delegate"
scriptStep = "https://gitlab.com/components/script@main"
actionStep = "https://gitlab.com/components/action-runner@main"
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment