mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-24 17:55:10 +08:00
修复 rsshub 版本号匹配
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
fcbf0555b7
commit
02f22ec9b9
4
.github/workflows/renovate-app-version.sh
vendored
4
.github/workflows/renovate-app-version.sh
vendored
@ -28,13 +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,3}$')
|
||||
|
||||
echo "Cleaned version: $cleaned_version"
|
||||
|
||||
# Handle special versions with dates and other formats
|
||||
if [[ -z "$cleaned_version" ]]; then
|
||||
cleaned_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}')
|
||||
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