mirror of
				https://github.com/docker/login-action.git
				synced 2025-10-31 18:20:10 +08:00 
			
		
		
		
	Create check-dist.yml
Signed-off-by: jongwooo <jongwooo.han@gmail.com>
This commit is contained in:
		
							parent
							
								
									f75d088332
								
							
						
					
					
						commit
						944a7dc4a2
					
				
							
								
								
									
										50
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,50 @@ | |||||||
|  | name: check dist/ | ||||||
|  | 
 | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     branches: | ||||||
|  |       - master | ||||||
|  |     paths-ignore: | ||||||
|  |       - '**.md' | ||||||
|  |   pull_request: | ||||||
|  |     paths-ignore: | ||||||
|  |       - '**.md' | ||||||
|  |   workflow_dispatch: | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   check-dist: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  | 
 | ||||||
|  |     steps: | ||||||
|  |       - | ||||||
|  |         name: Checkout | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  | 
 | ||||||
|  |       - | ||||||
|  |         name: Set Node.js 16.x | ||||||
|  |         uses: actions/setup-node@v3 | ||||||
|  |         with: | ||||||
|  |           node-version: 16.x | ||||||
|  |           cache: yarn | ||||||
|  | 
 | ||||||
|  |       - | ||||||
|  |         name: Install Dependencies | ||||||
|  |         run: yarn install --frozen-lockfile | ||||||
|  | 
 | ||||||
|  |       - | ||||||
|  |         name: Compare the expected and actual dist/ directories | ||||||
|  |         run: | | ||||||
|  |           if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | ||||||
|  |             echo "Detected uncommitted changes after build. See status below:" | ||||||
|  |             git diff | ||||||
|  |             exit 1 | ||||||
|  |           fi | ||||||
|  |         id: diff | ||||||
|  | 
 | ||||||
|  |       - | ||||||
|  |         name: Upload the expected version as an artifact | ||||||
|  |         uses: actions/upload-artifact@v2 | ||||||
|  |         if: ${{ failure() && steps.diff.conclusion == 'failure' }} | ||||||
|  |         with: | ||||||
|  |           name: dist | ||||||
|  |           path: dist/ | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 jongwooo
						jongwooo