diff --git a/CHANGELOG.md b/CHANGELOG.md index c0963fc..9e97506 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/main/kotlin/GitHub.kt b/src/main/kotlin/GitHub.kt index 785f992..05f1ab0 100644 --- a/src/main/kotlin/GitHub.kt +++ b/src/main/kotlin/GitHub.kt @@ -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)