mirror of
				https://github.com/ludeeus/action-shellcheck.git
				synced 2025-11-03 19:38:34 +01:00 
			
		
		
		
	Update
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							@@ -10,4 +10,4 @@ jobs:
 | 
			
		||||
    - name: Run Shellcheck
 | 
			
		||||
      uses: ./
 | 
			
		||||
      with:
 | 
			
		||||
        ignore: "ignore"
 | 
			
		||||
        ignore: ignore
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ example:
 | 
			
		||||
        SHELLCHECK_OPTS: -e SC2059 -e SC2034 -e SC1090
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Disable paths
 | 
			
		||||
## Ignore paths
 | 
			
		||||
 | 
			
		||||
You can use the `ignore` input to disable specific directories.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,8 +11,8 @@ statuscode=0
 | 
			
		||||
 | 
			
		||||
excludes+=( ! -path *./.git/* )
 | 
			
		||||
for path in ${INPUT_IGNORE}; do
 | 
			
		||||
    echo "::debug:: Adding '${path}' to excludes"
 | 
			
		||||
    excludes+=(! -path *"./${path}/"* )
 | 
			
		||||
    echo "::debug:: Adding '*./${path}/*' to excludes"
 | 
			
		||||
    excludes+=(! -path "*./${path}/*" )
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
readarray -d '' filepaths < <(find . "${excludes[@]}" \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user