Fix determine changes detection of "code" changes (#9038)
Replaces https://github.com/astral-sh/ruff/pull/9035
Fixes https://github.com/astral-sh/ruff/pull/8225
The issue appears to be that `*/**` was used instead of `**/*` which did
not match _any_ changed file as desired