mirror of
				https://github.com/ludeeus/action-shellcheck.git
				synced 2025-11-04 03:48:35 +01:00 
			
		
		
		
	Add support for .bashrc and .bash_profile
This commit is contained in:
		
							
								
								
									
										10
									
								
								.github/main.workflow
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/main.workflow
									
									
									
									
										vendored
									
									
								
							@@ -1,16 +1,8 @@
 | 
			
		||||
workflow "Trigger: Push" {
 | 
			
		||||
  on = "push"
 | 
			
		||||
  resolves = [
 | 
			
		||||
    "Shellcheck",
 | 
			
		||||
    "Black Code Formatter",
 | 
			
		||||
  ]
 | 
			
		||||
  resolves = ["Shellcheck"]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
action "Shellcheck" {
 | 
			
		||||
  uses = "ludeeus/action-shellcheck@master"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
action "Black Code Formatter" {
 | 
			
		||||
  uses = "lgeiger/black-action@master"
 | 
			
		||||
  args = "$GITHUB_WORKSPACE --check"
 | 
			
		||||
}
 | 
			
		||||
@@ -9,7 +9,7 @@ ENTRYPOINT ["/runaction.sh"]
 | 
			
		||||
 | 
			
		||||
LABEL "name"="shellcheck"
 | 
			
		||||
LABEL "maintainer"="Ludeeus <ludeeus@gmail.com>"
 | 
			
		||||
LABEL "version"="0.0.1"
 | 
			
		||||
LABEL "version"="0.1.0"
 | 
			
		||||
LABEL "com.github.actions.name"="shellcheck"
 | 
			
		||||
LABEL "com.github.actions.description"="Run shell check on ALL sh files in the repository."
 | 
			
		||||
LABEL "com.github.actions.icon"="terminal"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,6 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
cd "$GITHUB_WORKSPACE" || exit 1
 | 
			
		||||
find . -name \*.sh -exec shellcheck {} +
 | 
			
		||||
find . -name \*.sh -exec shellcheck {} +
 | 
			
		||||
find . -name \*.bashrc -exec shellcheck {} +
 | 
			
		||||
find . -name \*.bash_profile -exec shellcheck {} +
 | 
			
		||||
		Reference in New Issue
	
	Block a user