Skip Docker/publish workflows on forks

Add repository guard (github.repository == Nezreka/SoulSync) to
cleanup-dev-images, dev-nightly, and docker-publish workflows.
build-and-test stays available for fork contributors.
This commit is contained in:
JohnBaumb 2026-04-23 09:54:51 -07:00
parent 8f1e1666f2
commit 7c0f9510c8
3 changed files with 3 additions and 0 deletions

View file

@ -8,6 +8,7 @@ on:
jobs:
cleanup:
if: github.repository == 'Nezreka/SoulSync'
runs-on: ubuntu-latest
permissions:
packages: write

View file

@ -13,6 +13,7 @@ on:
jobs:
nightly:
if: github.repository == 'Nezreka/SoulSync'
runs-on: ubuntu-latest
# Skip scheduled runs if dev branch has no new commits in the last 24h
# (pushes and manual triggers always run)

View file

@ -15,6 +15,7 @@ on:
jobs:
build-and-push:
if: github.repository == 'Nezreka/SoulSync'
runs-on: ubuntu-latest
permissions: