Merge pull request #363 from JohnBaumb/fix/fork-workflow-guards
Skip Docker/publish workflows on forks
This commit is contained in:
commit
b4cc3e8975
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:
|
jobs:
|
||||||
cleanup:
|
cleanup:
|
||||||
|
if: github.repository == 'Nezreka/SoulSync'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
|
|
|
||||||
1
.github/workflows/dev-nightly.yml
vendored
1
.github/workflows/dev-nightly.yml
vendored
|
|
@ -13,6 +13,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
nightly:
|
nightly:
|
||||||
|
if: github.repository == 'Nezreka/SoulSync'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Skip scheduled runs if dev branch has no new commits in the last 24h
|
# Skip scheduled runs if dev branch has no new commits in the last 24h
|
||||||
# (pushes and manual triggers always run)
|
# (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:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
if: github.repository == 'Nezreka/SoulSync'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue