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