Conditionally run workflows only on parent repo

This commit is contained in:
Gabe Kangas 2022-11-19 11:56:15 -08:00
parent 58fdca3006
commit d087f296da
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA
5 changed files with 7 additions and 0 deletions

View file

@ -8,6 +8,8 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: github.repository == 'owncast/owncast'
steps:
- name: Checkout
uses: actions/checkout@v3

View file

@ -10,6 +10,7 @@ on:
jobs:
bundle:
runs-on: ubuntu-latest
if: github.repository == 'owncast/owncast'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

View file

@ -16,6 +16,8 @@ jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
if: github.repository == 'owncast/owncast'
defaults:
run:
working-directory: ./web

View file

@ -11,6 +11,7 @@ on:
jobs:
Docker:
runs-on: ubuntu-latest
if: github.repository == 'owncast/owncast'
steps:
- uses: earthly/actions-setup@v1
with:

View file

@ -11,6 +11,7 @@ on:
jobs:
Docker:
runs-on: ubuntu-latest
if: github.repository == 'owncast/owncast'
steps:
- uses: earthly/actions-setup@v1
with: