From df94dcdea6a62b9dce7c9622fd427fd3908a3ada Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Tue, 8 Apr 2025 18:55:54 +0000 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45dc7c5168..7d43e12fb2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: