You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-06-03 16:35:37 +02: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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// add compatibility for drone-ci plugins
|
// Add compatibility environment variables for drone-ci plugins.
|
||||||
metadata.SetDroneEnviron(step.Environment)
|
if step.Type == backend.StepTypePlugin {
|
||||||
|
metadata.SetDroneEnviron(step.Environment)
|
||||||
|
}
|
||||||
|
|
||||||
logger.Debug().
|
logger.Debug().
|
||||||
Str("step", step.Name).
|
Str("step", step.Name).
|
||||||
|
|||||||
Reference in New Issue
Block a user