From 9ab431a30de4d5a102fb2f12cc9a175f8f6cf46d Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Mon, 30 Oct 2023 19:25:08 -0400 Subject: [PATCH] don't run certain workflows on forks --- .github/workflows/auto-close-stale-pr.yml | 1 + .github/workflows/automations.yml | 2 ++ .github/workflows/build-docs.yml | 3 +-- .github/workflows/deploy-api-docs.yml | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-close-stale-pr.yml b/.github/workflows/auto-close-stale-pr.yml index 5bcaa05b..6f1027d5 100644 --- a/.github/workflows/auto-close-stale-pr.yml +++ b/.github/workflows/auto-close-stale-pr.yml @@ -5,6 +5,7 @@ on: jobs: stale: + if: github.repository == 'jellyfin/jellyfin-roku' runs-on: ubuntu-latest permissions: pull-requests: write diff --git a/.github/workflows/automations.yml b/.github/workflows/automations.yml index 2086d6d7..23dacdd9 100644 --- a/.github/workflows/automations.yml +++ b/.github/workflows/automations.yml @@ -12,6 +12,7 @@ on: jobs: project: + if: github.repository == 'jellyfin/jellyfin-roku' name: Project board 📊 runs-on: ubuntu-latest steps: @@ -23,6 +24,7 @@ jobs: column: In progress repo-token: ${{ secrets.JF_BOT_TOKEN }} label: + if: github.repository == 'jellyfin/jellyfin-roku' name: Labeling 🏷️ runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 65dfad4a..b380a151 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -7,12 +7,11 @@ on: jobs: docs: + if: github.repository == 'jellyfin/jellyfin-roku' runs-on: ubuntu-latest - permissions: # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. contents: write - steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: diff --git a/.github/workflows/deploy-api-docs.yml b/.github/workflows/deploy-api-docs.yml index 3d995280..92b7eb9b 100644 --- a/.github/workflows/deploy-api-docs.yml +++ b/.github/workflows/deploy-api-docs.yml @@ -23,6 +23,7 @@ concurrency: jobs: deploy: + if: github.repository == 'jellyfin/jellyfin-roku' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}