ci: Only run workspace_hack when tests run (#28346)

Skip `workspace_hack` for PRs that don't trigger tests (docs-only,
.github issue templates, etc).

Release Notes:

- N/A
This commit is contained in:
Peter Tripp 2025-04-08 18:55:54 +00:00 committed by GitHub
parent 1c85901440
commit df94dcdea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,9 @@ jobs:
timeout-minutes: 60
name: Check workspace-hack crate
needs: [job_spec]
if: github.repository_owner == 'zed-industries'
if: |
github.repository_owner == 'zed-industries' &&
needs.job_spec.outputs.run_tests == 'true'
runs-on:
- buildjet-8vcpu-ubuntu-2204
steps: