fix Github workflow for Docker build to avoid failing runs on forks (#479)

This commit is contained in:
Wendong-Fan 2025-04-14 08:32:55 +08:00 committed by GitHub
commit 805dd151ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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