From ae980f7d4f88af8a4e08d540bd3b5b0f24ebb1ce Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 25 Mar 2024 19:07:43 +0000 Subject: [PATCH] chore: make `build` only run on main --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 65e971981c111..7c58dce1e5adf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -666,7 +666,7 @@ jobs: # to main branch. We are only building this for amd64 platform. (>95% pulls # are for amd64) needs: changes - if: needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork + if: github.ref == 'refs/heads/main' && needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }} env: DOCKER_CLI_EXPERIMENTAL: "enabled"