Github bot : script beautyshied

This commit is contained in:
github-actions
2022-09-04 00:14:19 +00:00
parent 5bbfeaccfd
commit 9315a60016
4 changed files with 12 additions and 12 deletions

View File

@@ -75,12 +75,12 @@ for f in */; do
BYDATE=$(jq -r .dockerhub_by_date updater.json)
# Number of elements to check in dockerhub
if grep -Fxq "dockerhub_list_size" updater.json; then
LISTSIZE=$(jq -r .dockerhub_list_size updater.json)
if grep -Fxq "dockerhub_list_size" updater.json; then
LISTSIZE=$(jq -r .dockerhub_list_size updater.json)
else
LISTSIZE=100
LISTSIZE=100
fi
#Skip if paused
if [[ "$PAUSED" = true ]]; then bashio::log.magenta "... $SLUG addon updates are paused, skipping"; continue; fi
@@ -111,7 +111,7 @@ for f in */; do
sort -V |
tail -n 1
)
[ "${BYDATE}" = true ] &&
LASTVERSION=$(
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" |
@@ -122,7 +122,7 @@ for f in */; do
sort -V |
tail -n 1
) && \
DATE=$(
DATE=$(
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" |
jq '.results[] | select(.name==$LASTVERSION) | .last_updated' -r --arg LASTVERSION "$LASTVERSION"
) && \