fix: Handle image version updates gracefully when no changes detected
All checks were successful
Helm Chart Release / release-chart (push) Successful in 12s
Update Docker Images and Helm Chart / update (push) Successful in 20s

Changed the 'Update values.yaml' step to skip error exit when no version updates
are available. Instead of failing with exit 1, the workflow now logs an INFO
message and continues execution, allowing the workflow to complete successfully
when versions are already up to date.

- Changed ERROR message to INFO message
- Replaced exit 1 with conditional logic
- Added else clause to log when changes are detected

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-10 14:00:52 +09:00
parent db31200572
commit 81a9b35689

View File

@@ -195,9 +195,10 @@ jobs:
# 実際に変更されたか確認
if diff -q values.yaml.bak values.yaml > /dev/null; then
echo "ERROR: No changes were made to values.yaml"
echo "INFO: No changes were made to values.yaml (versions already up to date)"
cat values.yaml | grep -A 5 "image:"
exit 1
else
echo "Changes detected in values.yaml"
fi
echo "=== Updated values.yaml (image section) ==="