Skip to content

Commit

Permalink
fix: don't fail on previous results download if an artifact is expired
Browse files Browse the repository at this point in the history
closes #5
  • Loading branch information
vaind committed Jan 11, 2023
1 parent bec4079 commit ca6cdb7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.4.1

### Fixes

* Don't fail on previous results download if an artifact is expired.

## 1.4.0

### Changes
Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/GitHub.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ class GitHub {
return
}

if (artifact.isExpired) {
println("Couldn't download artifact ${artifact.name} - it has expired on ${artifact.expiresAt}")
return
}

println("Downloading artifact ${artifact.archiveDownloadUrl} and extracting to $targetDir")
artifact.download {
val zipStream = ZipInputStream(it)
Expand Down

0 comments on commit ca6cdb7

Please sign in to comment.