Skip to content

Commit

Permalink
skip not uploaded assets
Browse files Browse the repository at this point in the history
Signed-off-by: areller <[email protected]>
  • Loading branch information
areller committed Jun 7, 2022
1 parent 9a3c7fb commit f17423c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions in_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ func (c *InCommand) Run(destDir string, request InRequest) (InResponse, error) {
}

for _, asset := range assets {
state := asset.State
if state == nil || *state != "uploaded" {
continue
}

path := filepath.Join(destDir, *asset.Name)

var matchFound bool
Expand Down

0 comments on commit f17423c

Please sign in to comment.