mirror of
				https://github.com/ludeeus/action-shellcheck.git
				synced 2025-11-04 03:48:35 +01:00 
			
		
		
		
	simplify
This commit is contained in:
		
							
								
								
									
										3
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							@@ -5,7 +5,8 @@ jobs:
 | 
			
		||||
    name: Shellcheck
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@master
 | 
			
		||||
    - name: Checkout
 | 
			
		||||
      uses: actions/checkout@master
 | 
			
		||||
    - name: Run Shellcheck
 | 
			
		||||
      uses: ./
 | 
			
		||||
      with:
 | 
			
		||||
 
 | 
			
		||||
@@ -11,10 +11,8 @@ statuscode=0
 | 
			
		||||
 | 
			
		||||
excludes+=( ! -path *./.git/* )
 | 
			
		||||
for path in ${INPUT_IGNORE}; do
 | 
			
		||||
     [[ ${path#./*} != "$path" ]] || path=./${path}
 | 
			
		||||
 | 
			
		||||
    echo "::debug:: Adding '${path}' to excludes"
 | 
			
		||||
    excludes+=(! -path *"${path}"* )
 | 
			
		||||
    excludes+=(! -path *"./${path}/"* )
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
readarray -d '' filepaths < <(find . "${excludes[@]}" \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user