Skip to content

Commit ba86ada

Browse files
authored
Fix comparison of invalidation counts (#1270)
1 parent 778a563 commit ba86ada

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/Invalidations.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ jobs:
3636
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
3737
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
3838
- name: Check if the PR does increase number of invalidations
39-
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
40-
run: exit 1
39+
run: |
40+
if [ ${{ steps.invs_pr.outputs.total }} -gt ${{ steps.invs_default.outputs.total }} ]; then
41+
exit 1
42+
fi

0 commit comments

Comments
 (0)