Fix deprecation error (#6236)

This commit is contained in:
qwerty287
2026-03-13 12:51:35 +01:00
committed by GitHub
parent 8f184f7dcf
commit 768f22904f

View File

@@ -310,8 +310,9 @@ func (l *Linter) lintDeprecations(config *WorkflowConfig) error {
if len(parsed.RunsOn) > 0 { //nolint:staticcheck
err = multierr.Append(err, &pipeline_errors.PipelineError{
Type: pipeline_errors.PipelineErrorTypeDeprecation,
Message: "Usage of `runs_on` is deprecated, use `when.status`",
Type: pipeline_errors.PipelineErrorTypeDeprecation,
IsWarning: true,
Message: "Usage of `runs_on` is deprecated, use `when.status`",
Data: pipeline_errors.DeprecationErrorData{
File: config.File,
Field: fmt.Sprintf("%s.runs_on", config.File),