Fix wrong drone env vars (#1419)

Provide up to date drone compatibility environment variables to each step execution.

closes #1416

Before a step is executed, some environemnt variables are updated.
This ensures, that the updated environment variables are copied to their corresponding `DRONE_` environemt variables.

Side effect is that the `DRONE_` environemnt variables are no longer available in the metadata which should not harm as they are not used inside woodpecker.
This commit is contained in:
smainz
2022-11-22 23:57:12 +01:00
committed by GitHub
parent e7c8ed00e6
commit b8900cdf88
6 changed files with 76 additions and 63 deletions

View File

@@ -316,6 +316,7 @@ func (r *Runner) Run(ctx context.Context) error {
state.Pipeline.Step.Environment["CI_BUILD_STATUS"] = "failure"
state.Pipeline.Step.Environment["CI_JOB_STATUS"] = "failure"
}
return nil
})