mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 09:01:56 +00:00 
			
		
		
		
	CICD: Don't run jobs twice in PRs
Without this change, creating a PR triggers all jobs to run twice. Once due to a push event and once due to a pull_request event. Change to only trigger jobs due to push when pushing a tag or to the master branch, to avoid duplicate jobs for each PR.
This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							bc35592fd9
						
					
				
				
					commit
					0371f55541
				
			
							
								
								
									
										8
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/CICD.yml
									
									
									
									
										vendored
									
									
								
							@@ -4,7 +4,13 @@ env:
 | 
			
		||||
  MIN_SUPPORTED_RUST_VERSION: "1.42.0"
 | 
			
		||||
  CICD_INTERMEDIATES_DIR: "_cicd-intermediates"
 | 
			
		||||
 | 
			
		||||
on: [push, pull_request]
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
    tags:
 | 
			
		||||
      - '*'
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  min_version:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user