Skip to content

Commit

Permalink
fix (api): download artifact (#1785)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored Dec 22, 2017
1 parent df3053d commit 552d3a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/worker/builtin_artifact_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ func runArtifactDownload(w *currentWorker) BuiltInAction {

if pattern != "" && !regexp.MatchString(a.Name) {
sendLog(fmt.Sprintf("%s does not match pattern %s - skipped", a.Name, pattern))
defer wg.Done()
continue
}

if tag != "" && a.Tag != tag {
sendLog(fmt.Sprintf("%s does not match tag %s - skipped", a.Name, tag))
defer wg.Done()
continue
}

Expand Down

0 comments on commit 552d3a7

Please sign in to comment.