From 8a794d029d3238b26c781888eafa4c8cb60583c7 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 30 Mar 2026 17:38:32 -0700 Subject: [PATCH] fix(ci): add repo conditionals to prevent fork workflow failures (#4107) Add github.repository checks to docker-publish and deploy-site workflows so they skip on forks where upstream-specific resources (Docker Hub org, custom domain) are unavailable. Co-authored-by: StreamOfRon --- .github/workflows/deploy-site.yml | 2 ++ .github/workflows/docker-publish.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 89e031e587..3c21e8a001 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -19,6 +19,8 @@ concurrency: jobs: build-and-deploy: + # Only run on the upstream repository, not on forks + if: github.repository == 'NousResearch/hermes-agent' runs-on: ubuntu-latest environment: name: github-pages diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 11b98c3a98..0455c34d0e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -12,6 +12,8 @@ concurrency: jobs: build-and-push: + # Only run on the upstream repository, not on forks + if: github.repository == 'NousResearch/hermes-agent' runs-on: ubuntu-latest timeout-minutes: 30 steps: