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 <StreamOfRon@users.noreply.github.com>
This commit is contained in:
Teknium
2026-03-30 17:38:32 -07:00
committed by GitHub
parent e64b047663
commit 8a794d029d
2 changed files with 4 additions and 0 deletions

View File

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

View File

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