12
.github/workflows/renovate-app-version.sh
vendored
12
.github/workflows/renovate-app-version.sh
vendored
@@ -44,6 +44,10 @@ process_image() {
|
||||
# Match date version
|
||||
date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}')
|
||||
if [[ -n "$date_version" ]]; then
|
||||
if [[ "$old_version" == "$date_version" ]]; then
|
||||
echo "Skipping $app_name:$old_version"
|
||||
return
|
||||
fi
|
||||
if [[ "$found_alpine" == true ]]; then
|
||||
cleaned_version="$date_version-alpine"
|
||||
echo "Date alpine version: $date_version"
|
||||
@@ -57,6 +61,10 @@ process_image() {
|
||||
# Match date version
|
||||
date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{2}-[0-9]{2}-[0-9]{2}')
|
||||
if [[ -n "$date_version" ]]; then
|
||||
if [[ "$old_version" == "$date_version" ]]; then
|
||||
echo "Skipping $app_name:$old_version"
|
||||
return
|
||||
fi
|
||||
if [[ "$found_alpine" == true ]]; then
|
||||
cleaned_version="$date_version-alpine"
|
||||
echo "Mini Date alpine version: $date_version"
|
||||
@@ -70,6 +78,10 @@ process_image() {
|
||||
# Match number version
|
||||
number_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,3}' | head -n1)
|
||||
if [[ -n "$number_version" ]]; then
|
||||
if [[ "$old_version" == "$number_version" ]]; then
|
||||
echo "Skipping $app_name:$old_version"
|
||||
return
|
||||
fi
|
||||
if [[ "$found_alpine" == true ]]; then
|
||||
cleaned_version="$number_version-alpine"
|
||||
echo "Number alpine version: $number_version"
|
||||
|
||||
Reference in New Issue
Block a user