don't run certain workflows on forks

This commit is contained in:
Charles Ewert 2023-10-30 19:25:08 -04:00
parent dded75f307
commit 9ab431a30d
4 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ on:
jobs: jobs:
stale: stale:
if: github.repository == 'jellyfin/jellyfin-roku'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
pull-requests: write pull-requests: write

View File

@ -12,6 +12,7 @@ on:
jobs: jobs:
project: project:
if: github.repository == 'jellyfin/jellyfin-roku'
name: Project board 📊 name: Project board 📊
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -23,6 +24,7 @@ jobs:
column: In progress column: In progress
repo-token: ${{ secrets.JF_BOT_TOKEN }} repo-token: ${{ secrets.JF_BOT_TOKEN }}
label: label:
if: github.repository == 'jellyfin/jellyfin-roku'
name: Labeling 🏷️ name: Labeling 🏷️
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@ -7,12 +7,11 @@ on:
jobs: jobs:
docs: docs:
if: github.repository == 'jellyfin/jellyfin-roku'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write contents: write
steps: steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with: with:

View File

@ -23,6 +23,7 @@ concurrency:
jobs: jobs:
deploy: deploy:
if: github.repository == 'jellyfin/jellyfin-roku'
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}