File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ jobs:
655
655
# to main branch. We are only building this for amd64 platform. (>95% pulls
656
656
# are for amd64)
657
657
needs : changes
658
- if : needs.changes.outputs.docs-only == 'false'
658
+ if : needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork
659
659
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
660
660
env :
661
661
DOCKER_CLI_EXPERIMENTAL : " enabled"
@@ -739,6 +739,7 @@ jobs:
739
739
fi
740
740
741
741
- name : Prune old images
742
+ if : github.ref == 'refs/heads/main'
742
743
uses : vlaurin/action-ghcr-prune@v0.5.0
743
744
with :
744
745
token : ${{ secrets.GITHUB_TOKEN }}
@@ -753,6 +754,7 @@ jobs:
753
754
prune-untagged : true
754
755
755
756
- name : Upload build artifacts
757
+ if : github.ref == 'refs/heads/main'
756
758
uses : actions/upload-artifact@v4
757
759
with :
758
760
name : coder
You can’t perform that action at this time.
0 commit comments