Don't trigger on schedule event when in a fork
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/main-ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/main-ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -10,6 +10,8 @@ on:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  build-php:
 | 
					  build-php:
 | 
				
			||||||
 | 
					    # Don't trigger on schedule event when in a fork
 | 
				
			||||||
 | 
					    if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'laradock/laradock')
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
@@ -42,6 +44,8 @@ jobs:
 | 
				
			|||||||
        docker-compose down
 | 
					        docker-compose down
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  build-other:
 | 
					  build-other:
 | 
				
			||||||
 | 
					    # Don't trigger on schedule event when in a fork
 | 
				
			||||||
 | 
					    if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'laradock/laradock')
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user