mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-24 14:53:52 +08:00
修复 RssHub 无法匹配问题
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
5b3d401a73
commit
0205e9c3b2
7
.github/workflows/renovate-app-version.sh
vendored
7
.github/workflows/renovate-app-version.sh
vendored
@ -28,14 +28,13 @@ process_image() {
|
||||
echo "Trimmed version: $trimmed_version"
|
||||
|
||||
# Remove any suffixes (like -ffmpeg) for versioning purposes
|
||||
cleaned_version=$(echo $trimmed_version | grep -oE '^[0-9]+(\.[0-9]+){0,4}')
|
||||
cleaned_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,4}')
|
||||
|
||||
echo "Cleaned version: $cleaned_version"
|
||||
|
||||
# Handle special versions with dates and other formats
|
||||
if [[ -z "$cleaned_version" && "$trimmed_version" =~ ^RELEASE\.[0-9]{4}-[0-9]{2}-[0-9]{2} ]]; then
|
||||
# Handle minio version format RELEASE.YYYY-MM-DDTHH-MM-SSZ
|
||||
cleaned_version=$(echo $trimmed_version | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}')
|
||||
if [[ -z "$cleaned_version" ]]; then
|
||||
cleaned_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}')
|
||||
fi
|
||||
|
||||
echo "Final version: $cleaned_version"
|
||||
|
Loading…
Reference in New Issue
Block a user