Skip to content

Commit ed294b9

Browse files
committed
ci(invalidations): fix comparison used to determine invalidations change
julia-actions/julia-invalidations/pull/4 made the comparison go from a number comparison to a string comparison effectively breaking the workflow.
1 parent 3105f14 commit ed294b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/invalidations.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ jobs:
6464
echo "Invalidations on ${{ github.head_ref || github.ref_name }}: ${{ steps.invalidations-in-pr.outputs.total }} (${{ steps.invalidations-in-pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
6565
6666
- name: "Check if the PR increases the number of invalidations"
67+
if: ${{ fromJSON(steps.invalidations-in-pr.outputs.total) > fromJSON(steps.invalidations-baseline.outputs.total) }}
6768
run: |
68-
if [ ${{ steps.invalidations-in-pr.outputs.total }} -gt ${{ steps.invalidations-baseline.outputs.total }} ]; then
6969
echo "More invalidations have been introduced."
7070
exit 1
71-
fi

0 commit comments

Comments
 (0)