mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-30 09:31:44 +00:00
fix(updater): skip a dockerhub_by_date addon when no tag survives the filters (#3164)
GNU date reads an empty -d as today, so an empty LASTVERSION became "-DD-MM-YYYY" and passed the empty-version check. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dd34fc67b9
commit
b06899520e
3 files changed
+6
-1
No files matched your search
@@ -1,3 +1,7 @@
|
||||
## 2026.10.1 (2026-10-28)
|
||||
|
||||
- With `dockerhub_by_date: true`, skip the addon when no tag survives the filters, instead of publishing a version made of the date alone such as `-28-10-2026`
|
||||
|
||||
## 2026.10 (2026-10-28)
|
||||
|
||||
- `github_tagfilter` accepts a regular expression when prefixed with `~`, now for every source: dockerhub and Codeberg tags are matched against it, as lastversion already did for the other sources. Values without the `~` prefix keep matching as before
|
||||
|
||||
@@ -30,4 +30,4 @@ schema:
|
||||
slug: updater
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/addons_updater
|
||||
version: "2026.10"
|
||||
version: "2026.10.1"
|
||||
@@ -204,6 +204,7 @@ for f in */; do
|
||||
| sort -V \
|
||||
| tail -n 1
|
||||
) \
|
||||
&& [ -n "$LASTVERSION" ] \
|
||||
&& DATE=$(
|
||||
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=${LISTSIZE}&ordering=last_updated$FILTER_TEXT" \
|
||||
| jq '.results[] | select(.name==$LASTVERSION) | .last_updated' -r --arg LASTVERSION "$LASTVERSION"
|
||||
|
||||
Reference in new issue
Block a user