From 91303a50210aecba7e7f5baffb29a0b521ec6c88 Mon Sep 17 00:00:00 2001 From: Dairon M Date: Mon, 5 Feb 2024 13:12:29 -0500 Subject: [PATCH] Do not run scheduled CI jobs on forks (#7394) Runs scheduled CI jobs only on the main repository, not on forks. These jobs fail on forks and generate unnecessary noise on contributor emails. Release Notes: - N/A --- .github/workflows/release_nightly.yml | 3 +++ .github/workflows/update_all_top_ranking_issues.yml | 1 + .github/workflows/update_weekly_top_ranking_issues.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 80a012e560..b7221c97fd 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -16,6 +16,7 @@ env: jobs: style: name: Check formatting and Clippy lints + if: github.repository_owner == 'zed-industries' runs-on: - self-hosted - test @@ -32,6 +33,7 @@ jobs: tests: name: Run tests + if: github.repository_owner == 'zed-industries' runs-on: - self-hosted - test @@ -48,6 +50,7 @@ jobs: bundle: name: Bundle app + if: github.repository_owner == 'zed-industries' runs-on: - self-hosted - bundle diff --git a/.github/workflows/update_all_top_ranking_issues.yml b/.github/workflows/update_all_top_ranking_issues.yml index 0ffdb6aeb2..32941ea220 100644 --- a/.github/workflows/update_all_top_ranking_issues.yml +++ b/.github/workflows/update_all_top_ranking_issues.yml @@ -6,6 +6,7 @@ on: jobs: update_top_ranking_issues: runs-on: ubuntu-latest + if: github.repository_owner == 'zed-industries' steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v4 diff --git a/.github/workflows/update_weekly_top_ranking_issues.yml b/.github/workflows/update_weekly_top_ranking_issues.yml index fa9a33bdf5..de1b4d21bc 100644 --- a/.github/workflows/update_weekly_top_ranking_issues.yml +++ b/.github/workflows/update_weekly_top_ranking_issues.yml @@ -6,6 +6,7 @@ on: jobs: update_top_ranking_issues: runs-on: ubuntu-latest + if: github.repository_owner == 'zed-industries' steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v4