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:
parent
8f1e1666f2
commit
7c0f9510c8
3 changed files with 3 additions and 0 deletions
1
.github/workflows/cleanup-dev-images.yml
vendored
1
.github/workflows/cleanup-dev-images.yml
vendored
|
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
cleanup:
|
||||
if: github.repository == 'Nezreka/SoulSync'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
|
|
|
|||
1
.github/workflows/dev-nightly.yml
vendored
1
.github/workflows/dev-nightly.yml
vendored
|
|
@ -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)
|
||||
|
|
|
|||
1
.github/workflows/docker-publish.yml
vendored
1
.github/workflows/docker-publish.yml
vendored
|
|
@ -15,6 +15,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build-and-push:
|
||||
if: github.repository == 'Nezreka/SoulSync'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
|
|
|
|||
Loading…
Reference in a new issue