From 7204591fa7f546335e0e405da3cbd354d2e1223c Mon Sep 17 00:00:00 2001 From: Didier Durand Date: Fri, 11 Apr 2025 11:07:20 +0200 Subject: [PATCH] fix Github workflow for Docker build to avoid failing runs on forks --- .github/workflows/docker-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 2e98caa..e7afe40 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -11,6 +11,12 @@ jobs: build-and-push: name: Build and Push Docker Image runs-on: ubuntu-latest + + # Only run on main repo on and PRs that match the main repo. + if: | + github.repository == 'camel-ai/owl' && + (github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name == github.repository) steps: - name: Checkout code