From ce19898d3d66d4e40d74921be9ba779de4c165f7 Mon Sep 17 00:00:00 2001 From: h1dden-da3m0n <33120068+h1dden-da3m0n@users.noreply.github.com> Date: Thu, 18 Mar 2021 23:18:27 +0100 Subject: [PATCH] change to not run certain workflows in forks --- .github/workflows/codeql-analysis.yml | 1 + .github/workflows/create-github-release.yml | 2 ++ .github/workflows/update-release-draft.yml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f6acd22..6d877d5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -16,6 +16,7 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + if: github.repository == 'jellyfin/jellyfin-plugin-nextpvr' strategy: fail-fast: false diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index 4670771..37031b7 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -7,6 +7,8 @@ on: jobs: publish_release_draft: runs-on: ubuntu-latest + if: github.repository == 'jellyfin/jellyfin-plugin-nextpvr' + steps: - name: Get version from GITHUB_REF id: get-version diff --git a/.github/workflows/update-release-draft.yml b/.github/workflows/update-release-draft.yml index 52af7eb..e765167 100644 --- a/.github/workflows/update-release-draft.yml +++ b/.github/workflows/update-release-draft.yml @@ -9,6 +9,8 @@ on: jobs: update_release_draft: runs-on: ubuntu-latest + if: github.repository == 'jellyfin/jellyfin-plugin-nextpvr' + steps: # Drafts your next Release notes as Pull Requests are merged into "master" - uses: release-drafter/release-drafter@v5.15.0