From 6d2491efb563bb60ecd080820ea84439b7270535 Mon Sep 17 00:00:00 2001 From: h1dden-da3m0n <33120068+h1dden-da3m0n@users.noreply.github.com> Date: Thu, 18 Mar 2021 22:42: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..f41dfa6 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-kitsu' strategy: fail-fast: false diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index 4670771..bb97e62 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-kitsu' + 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..dec33bd 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-kitsu' + steps: # Drafts your next Release notes as Pull Requests are merged into "master" - uses: release-drafter/release-drafter@v5.15.0