mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Only add compatibility environment variables for drone-ci to plugins (#6271)
This commit is contained in:
@@ -161,8 +161,10 @@ func (r *Runtime) execAll(runnerCtx context.Context, steps []*backend.Step) <-ch
|
||||
return err
|
||||
}
|
||||
|
||||
// add compatibility for drone-ci plugins
|
||||
metadata.SetDroneEnviron(step.Environment)
|
||||
// Add compatibility environment variables for drone-ci plugins.
|
||||
if step.Type == backend.StepTypePlugin {
|
||||
metadata.SetDroneEnviron(step.Environment)
|
||||
}
|
||||
|
||||
logger.Debug().
|
||||
Str("step", step.Name).
|
||||
|
||||
Reference in New Issue
Block a user