Skip to content

Commit

Permalink
Fix exclude split regexp pattern.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
  • Loading branch information
AndrienkoAleksandr committed Oct 17, 2021
1 parent ea649bc commit d154c48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/eclipse/che/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public static void main( String[] args ) throws IOException {
}

String excludeListEnv = System.getenv("EXCLUDE_DEPS");
List<String> excludeList = excludeListEnv != null ? Arrays.asList(excludeListEnv.split(",")) : Collections.emptyList();
System.out.println("Exclude list: " + excludeList);
List<String> excludeList = excludeListEnv != null ? Arrays.asList(excludeListEnv.split(",\\s+")) : Collections.emptyList();

File goSum = new File(Path.of(repoPath, "go.sum").toUri());
Collection<String> goSumDeps = readGoSumFile(goSum);
Expand Down

0 comments on commit d154c48

Please sign in to comment.