rename stepID to workflowID to reflect value (#3502)

address https://github.com/woodpecker-ci/woodpecker/issues/3494#issuecomment-2001986597
This commit is contained in:
6543 2024-03-18 15:21:26 +01:00 committed by GitHub
parent 7544abde62
commit 43264a5f8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -237,7 +237,7 @@ func (b *StepBuilder) environmentVariables(metadata metadata.Metadata, axis matr
return environ
}
func (b *StepBuilder) toInternalRepresentation(parsed *yaml_types.Workflow, environ map[string]string, metadata metadata.Metadata, stepID int64) (*backend_types.Config, error) {
func (b *StepBuilder) toInternalRepresentation(parsed *yaml_types.Workflow, environ map[string]string, metadata metadata.Metadata, workflowID int64) (*backend_types.Config, error) {
var secrets []compiler.Secret
for _, sec := range b.Secs {
var events []string
@ -286,7 +286,7 @@ func (b *StepBuilder) toInternalRepresentation(parsed *yaml_types.Workflow, envi
fmt.Sprintf(
"wp_%s_%d",
strings.ToLower(ulid.Make().String()),
stepID,
workflowID,
),
),
compiler.WithProxy(b.ProxyOpts),