diff --git a/action.yml b/action.yml index 22e5da5..dd5bf40 100644 --- a/action.yml +++ b/action.yml @@ -2,6 +2,12 @@ name: "DEPENDENCIES.md file checker." description: "DEPENDENCIES.md file checker." author: "oandriie@redhat.com" +inputs: + EXCLUDE_DEPS: + description: "List dependencies to exclude listed with comma separator" + required: false + default: "" + runs: using: "docker" image: "Dockerfile" diff --git a/src/main/java/org/eclipse/che/App.java b/src/main/java/org/eclipse/che/App.java index 392ef19..7708d08 100644 --- a/src/main/java/org/eclipse/che/App.java +++ b/src/main/java/org/eclipse/che/App.java @@ -15,8 +15,7 @@ public static void main( String[] args ) throws IOException { } String excludeListEnv = System.getenv("EXCLUDE_DEPS"); - List excludeList = excludeListEnv != null ? Arrays.asList(excludeListEnv.split(",")) : Collections.emptyList(); - System.out.println("Exclude list: " + excludeList); + List excludeList = excludeListEnv != null ? Arrays.asList(excludeListEnv.split(",\\s+")) : Collections.emptyList(); File goSum = new File(Path.of(repoPath, "go.sum").toUri()); Collection goSumDeps = readGoSumFile(goSum);