Skip to content

Commit 55cfe03

Browse files
authored
In bash, arithmetic expressions inside (( )) return exit code 1 when the result is 0 (#39)
1 parent bca8a4b commit 55cfe03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

review-pr/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ runs:
372372
DELETED=0
373373
for CACHE_ID in $OLD_CACHES; do
374374
if gh api "repos/${{ github.repository }}/actions/caches/$CACHE_ID" -X DELETE 2>/dev/null; then
375-
((DELETED++))
375+
((DELETED++)) || true
376376
fi
377377
done
378378

0 commit comments

Comments
 (0)