ci: Improve check_docs skipping (#33455)

Follow-up to: https://github.com/zed-industries/zed/pull/33398

Logic there was incomplete. Caused [this
failure](https://github.com/zed-industries/zed/actions/runs/15904169712/job/44854558276).

Release Notes:

- N/A
d1eb69c6cdPeter Tripp committed on 6/26/2025, 2:34:20 PM· committed by GitHubparent40cbfb7
1 file changedLine totals unavailable