mirror of
https://github.com/camel-ai/owl.git
synced 2025-12-26 02:06:20 +08:00
fix Github workflow for Docker build to avoid failing runs on forks
This commit is contained in:
parent
6727c53055
commit
7204591fa7
6
.github/workflows/docker-build.yml
vendored
6
.github/workflows/docker-build.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user