Skip to content

Commit 8d08558

Browse files
Set pre-step status to skipped if job is skipped (#29489) (#29523)
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: ![image](https://github.com/go-gitea/gitea/assets/33891828/4bac2ba9-66de-4679-b7ed-fbae459c0c54) after: ![image](https://github.com/go-gitea/gitea/assets/33891828/ead4871a-4e0f-4bb1-9fb4-37f4fdb78dfc) Co-authored-by: sillyguodong <[email protected]>
1 parent 730cd2d commit 8d08558

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/actions/task_state.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ func FullSteps(task *actions_model.ActionTask) []*actions_model.ActionTaskStep {
3535
} else if task.Status.IsDone() {
3636
preStep.Stopped = task.Stopped
3737
preStep.Status = actions_model.StatusFailure
38+
if task.Status.IsSkipped() {
39+
preStep.Status = actions_model.StatusSkipped
40+
}
3841
}
3942
logIndex += preStep.LogLength
4043

0 commit comments

Comments
 (0)