Fix exit code handling in update script to ensure accurate detection of no changes

This commit is contained in:
2025-05-03 17:13:11 +02:00
parent 2ce919922b
commit ed06408fed

View File

@@ -70,8 +70,7 @@ jobs:
echo "No changes detected"
echo "changes_detected=false" >> $GITHUB_ENV
# Transform it to 0 to avoid failing the workflow
echo "EXIT_CODE=0" >> $GITHUB_ENV
echo "exit_code=$EXIT_CODE" >> $GITHUB_ENV
echo "exit_code=0" >> $GITHUB_ENV
exit 0
else
echo "Script failed with exit code $EXIT_CODE"