mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-06 17:40:58 +00:00
* Potentially solved merge conflict * Update pkg/model/planner.go Based on feedback Co-authored-by: Ryan (hackercat) <me@hackerc.at> * Fixed compilation error * added missed test * Fixed spelling error to work with lint error Co-authored-by: Ryan (hackercat) <me@hackerc.at> Co-authored-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
0f90e95266
commit
338a9481a7
5 changed files with 87 additions and 6 deletions
|
@ -59,7 +59,7 @@ type Job struct {
|
|||
RawNeeds yaml.Node `yaml:"needs"`
|
||||
RawRunsOn yaml.Node `yaml:"runs-on"`
|
||||
Env map[string]string `yaml:"env"`
|
||||
If string `yaml:"if"`
|
||||
If yaml.Node `yaml:"if"`
|
||||
Steps []*Step `yaml:"steps"`
|
||||
TimeoutMinutes int64 `yaml:"timeout-minutes"`
|
||||
Services map[string]*ContainerSpec `yaml:"services"`
|
||||
|
@ -211,7 +211,7 @@ type ContainerSpec struct {
|
|||
// Step is the structure of one step in a job
|
||||
type Step struct {
|
||||
ID string `yaml:"id"`
|
||||
If string `yaml:"if"`
|
||||
If yaml.Node `yaml:"if"`
|
||||
Name string `yaml:"name"`
|
||||
Uses string `yaml:"uses"`
|
||||
Run string `yaml:"run"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue