From d446b8ca0bf6e662972b3787345191b1bc8f26d9 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 21 Feb 2022 09:39:40 +0100 Subject: [PATCH] ci/weekly: Only run scheduled jobs on the upstream repository With the workflow being to create a fork in order to contribute to this project, this fork shouldn't automatically run scheduled linting jobs on the main branch (wherever that happened to be when the fork was cloned/created) and bothering the fork-er with it if it's non-compliant. --- .github/workflows/weekly.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index e5a307459..bbd04da8a 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -11,6 +11,7 @@ jobs: weekly-clippy-beta: name: Clippy Beta runs-on: ubuntu-latest + if: github.repository_owner == 'getsentry' steps: - uses: actions/checkout@v2 @@ -35,6 +36,7 @@ jobs: weekly-audit: name: Audit runs-on: ubuntu-latest + if: github.repository_owner == 'getsentry' steps: - uses: actions/checkout@v2