mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-07 18:59:19 +00:00
ac49dbe1a2
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
27 lines
652 B
Go
27 lines
652 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_27
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.dev/modelmigration/base"
|
|
|
|
"xorm.io/xorm"
|
|
)
|
|
|
|
// AddContinueOnErrorToActionRunJob adds the ContinueOnError column to ActionRunJob,
|
|
// storing the job-level continue-on-error value from the workflow YAML.
|
|
func AddContinueOnErrorToActionRunJob(_ context.Context, x base.EngineMigration) error {
|
|
type ActionRunJob struct {
|
|
ContinueOnError bool `xorm:"NOT NULL DEFAULT FALSE"`
|
|
}
|
|
|
|
_, err := x.SyncWithOptions(xorm.SyncOptions{
|
|
IgnoreDropIndices: true,
|
|
IgnoreConstrains: true,
|
|
}, new(ActionRunJob))
|
|
return err
|
|
}
|