Skip to content

Commit

Permalink
fix: Skip cache if catpkg was 404
Browse files Browse the repository at this point in the history
  • Loading branch information
amis92 committed Sep 18, 2020
1 parent 2b50fca commit 1f3247b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ function Get-UpdatedCache {
# latest release not changed, catpkg update not necessary
$result.latestRelease = $Cache.latestRelease
$result.catpkg = $Cache.catpkg
return $result
if (-not $Cache.catpkg.apiResponseError) {
# only return if cached catpkg isn't an error
return $result
}
}
elseif (-not $apiLatestRelease.apiResult) {
# no apiResult means an error
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
- master
paths:
- "registry/**"
- ".github/**"
- ".github/workflows/update-index.yml"
- ".github/actions/update-index/**"

jobs:
update:
Expand Down

0 comments on commit 1f3247b

Please sign in to comment.