mirror of
				https://github.com/crazy-max/ghaction-upx.git
				synced 2025-11-03 12:38:12 -07:00 
			
		
		
		
	Add pre-checkin workflow
This commit is contained in:
		
							parent
							
								
									16fd2cd4ef
								
							
						
					
					
						commit
						3e1ab9a87c
					
				
							
								
								
									
										30
									
								
								.github/workflows/pre-checkin.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/pre-checkin.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
				
			|||||||
 | 
					name: pre-checkin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    paths-ignore:
 | 
				
			||||||
 | 
					      - '**.md'
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    paths-ignore:
 | 
				
			||||||
 | 
					      - '**.md'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  pre-checkin:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: Checkout
 | 
				
			||||||
 | 
					        uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: Install
 | 
				
			||||||
 | 
					        run: yarn install
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: Pre-checkin
 | 
				
			||||||
 | 
					        run: yarn run pre-checkin
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: Check for uncommitted changes
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          if [[ `git status --porcelain` ]]; then
 | 
				
			||||||
 | 
					            git status --porcelain
 | 
				
			||||||
 | 
					            echo "::warning::Found changes. Please run 'yarn run pre-checkin' and push"
 | 
				
			||||||
 | 
					          fi
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user