mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 04:14:01 +01:00 
			
		
		
		
	Set pre-step status to skipped if job is skipped (#29489)
				
					
				
			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: 
This commit is contained in:
		
							parent
							
								
									194479a741
								
							
						
					
					
						commit
						cee08f6347
					
				@ -35,6 +35,9 @@ func FullSteps(task *actions_model.ActionTask) []*actions_model.ActionTaskStep {
 | 
			
		||||
	} else if task.Status.IsDone() {
 | 
			
		||||
		preStep.Stopped = task.Stopped
 | 
			
		||||
		preStep.Status = actions_model.StatusFailure
 | 
			
		||||
		if task.Status.IsSkipped() {
 | 
			
		||||
			preStep.Status = actions_model.StatusSkipped
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	logIndex += preStep.LogLength
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user