chore: only run `build` step on `main`

The comment says it only runs on main, but it actually doesn't
This commit is contained in:
Colin Adler 2024-03-01 00:15:12 +00:00
parent 5a53afda46
commit d239c9956d
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,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: needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork && github.ref == 'refs/heads/main'
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"