mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-09 08:40:29 +00:00
skip unsupported platforms
Signed-off-by: Casey Lee <[email protected]>
This commit is contained in:
6 files changed
+23
-14
No files matched your search
@@ -79,6 +79,9 @@ func (runner *runnerImpl) NewRunExecutor(run *model.Run, matrix map[string]inter
|
||||
rc.EventJSON = runner.eventJSON
|
||||
rc.StepResults = make(map[string]*stepResult)
|
||||
rc.Matrix = matrix
|
||||
|
||||
ee := rc.NewExpressionEvaluator()
|
||||
rc.PlatformName = ee.Interpolate(run.Job().RunsOn)
|
||||
return func(ctx context.Context) error {
|
||||
ctx = WithJobLogger(ctx, rc.Run.String())
|
||||
return rc.Executor()(ctx)
|
||||
|
||||
Reference in new issue
Block a user