add directory arg
This commit is contained in:
		
							parent
							
								
									4cfaabcf34
								
							
						
					
					
						commit
						c29c0c454f
					
				@ -9,6 +9,11 @@ inputs:
 | 
				
			|||||||
  flags:
 | 
					  flags:
 | 
				
			||||||
    description: 'GolangCI command line flags'
 | 
					    description: 'GolangCI command line flags'
 | 
				
			||||||
    required: false
 | 
					    required: false
 | 
				
			||||||
 | 
					  directory:
 | 
				
			||||||
 | 
					    description: 'Working directory'
 | 
				
			||||||
 | 
					    required: false
 | 
				
			||||||
 | 
					    default: ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
runs:
 | 
					runs:
 | 
				
			||||||
  using: 'docker'
 | 
					  using: 'docker'
 | 
				
			||||||
  image: 'Dockerfile'
 | 
					  image: 'Dockerfile'
 | 
				
			||||||
 | 
				
			|||||||
@ -2,5 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
echo 'golangci-lint-action: start'
 | 
					echo 'golangci-lint-action: start'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cd "${GITHUB_WORKSPACE}/${DIRECTORY}" || exit 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# shellcheck disable=SC2086
 | 
					# shellcheck disable=SC2086
 | 
				
			||||||
golangci-lint run --out-format github-actions ${FLAGS}
 | 
					golangci-lint run --out-format github-actions ${FLAGS}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user