Backport #29489 by @sillyguodong close #27496 1. Set pre-step (Set up job) status to `skipped` if job is skipped. 2. Apart from pre-step, the other steps should also be set to `skipped`. The status of other steps are reported from the runner side. This will be completed by this PR: https://gitea.com/gitea/act_runner/pulls/500 before:  after:  Co-authored-by: sillyguodong <33891828+sillyguodong@users.noreply.github.com> (cherry picked from commit 8d085587831d1357ae80046fe0627dbcc8657a79)
This commit is contained in:
parent
2662e74883
commit
5099d3c747
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ func FullSteps(task *actions_model.ActionTask) []*actions_model.ActionTaskStep {
|
||||||
} else if task.Status.IsDone() {
|
} else if task.Status.IsDone() {
|
||||||
preStep.Stopped = task.Stopped
|
preStep.Stopped = task.Stopped
|
||||||
preStep.Status = actions_model.StatusFailure
|
preStep.Status = actions_model.StatusFailure
|
||||||
|
if task.Status.IsSkipped() {
|
||||||
|
preStep.Status = actions_model.StatusSkipped
|
||||||
|
}
|
||||||
}
|
}
|
||||||
logIndex += preStep.LogLength
|
logIndex += preStep.LogLength
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue