Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd8010c

Browse files
authored
chore: make build only run on main (#12753)
1 parent 541ccd9 commit fd8010c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ jobs:
666666
# to main branch. We are only building this for amd64 platform. (>95% pulls
667667
# are for amd64)
668668
needs: changes
669-
if: needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork
669+
if: github.ref == 'refs/heads/main' && needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork
670670
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
671671
env:
672672
DOCKER_CLI_EXPERIMENTAL: "enabled"

0 commit comments

Comments
 (0)