We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f9fac1 commit b4855f2Copy full SHA for b4855f2
1 file changed
.github/workflows/cleanup-container-images.yml
@@ -114,9 +114,8 @@ jobs:
114
/dev/null)
115
116
exit_code=$?
117
-
118
- # Count purged images by looking for lines with "Deleted manifest" in the output
119
- purged_count=$(echo "$purge_output" | grep -c "Deleted manifest" || echo 0)
+ # Count purged images by looking for lines with "Deleted manifest" in the output
+ purged_count=$(echo "$purge_output" | grep -c "Deleted manifest" || true)
120
echo "purged_count=$purged_count" >> $GITHUB_OUTPUT
121
122
if [ $exit_code -eq 0 ]; then
0 commit comments