Fix CI: Skip renaming when package already has correct name
Some checks failed
Comprehensive CI/CD Pipeline / Build and Test (push) Successful in 2m29s
Comprehensive CI/CD Pipeline / Security Audit (push) Failing after 7s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 48s
Comprehensive CI/CD Pipeline / Status Report (push) Has been skipped
Some checks failed
Comprehensive CI/CD Pipeline / Build and Test (push) Successful in 2m29s
Comprehensive CI/CD Pipeline / Security Audit (push) Failing after 7s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 48s
Comprehensive CI/CD Pipeline / Status Report (push) Has been skipped
- Add check to only rename if old and new names are different - Prevents 'mv: same file' error when package already has build version - Package is already correctly named with build version from dpkg-deb - This should complete the CI successfully
This commit is contained in:
parent
04908781f5
commit
b55cc90f86
1 changed files with 8 additions and 2 deletions
|
|
@ -269,8 +269,14 @@ jobs:
|
|||
# Extract architecture (last part before .deb)
|
||||
arch=$(echo "$pkg_name" | sed 's/.*_\([^.]*\)\.deb$/\1/')
|
||||
new_name="bootc-image-builder_${BUILD_VERSION}_${arch}.deb"
|
||||
|
||||
# Only rename if the names are different
|
||||
if [ "$pkg_name" != "$new_name" ]; then
|
||||
echo "Renaming: $pkg_name -> $new_name"
|
||||
mv "$pkg" "$new_name"
|
||||
else
|
||||
echo "Package already has correct name: $pkg_name"
|
||||
fi
|
||||
else
|
||||
# Fallback: keep original name
|
||||
echo "Keeping original name: $pkg_name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue