From 2ecc4eaafb86edb65ca246688086ae6982a9a19d Mon Sep 17 00:00:00 2001 From: Anderson Banihirwe Date: Tue, 1 Mar 2022 08:57:09 -0700 Subject: [PATCH] Disable CI runs on forks --- .github/workflows/ci-additional.yaml | 1 + .github/workflows/ci.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci-additional.yaml b/.github/workflows/ci-additional.yaml index b476c224df6..6bd9bcd9d6b 100644 --- a/.github/workflows/ci-additional.yaml +++ b/.github/workflows/ci-additional.yaml @@ -119,6 +119,7 @@ jobs: doctest: name: Doctests runs-on: "ubuntu-latest" + if: needs.detect-ci-trigger.outputs.triggered == 'false' defaults: run: shell: bash -l {0} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4f6cbbc3871..1e5db3a73ed 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -115,6 +115,7 @@ jobs: event_file: name: "Event File" runs-on: ubuntu-latest + if: github.repository == 'pydata/xarray' steps: - name: Upload uses: actions/upload-artifact@v2