From 63345c4e5dd8ce210a43c9e89a883a262e755c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Mon, 3 Jan 2022 13:10:53 +0100 Subject: [PATCH] ci: disable GitHub Actions on forks --- .github/workflows/main.yml | 1 + .github/workflows/project.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ab7efdd6..cdadc1434 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,7 @@ jobs: tests: name: Run tests runs-on: ${{ matrix.os }} + if: github.repository == 'ohmyzsh/ohmyzsh' strategy: matrix: os: [ubuntu-latest, macos-latest] diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 013255890..2a27b70fc 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -9,6 +9,7 @@ jobs: add-to-project: name: Add to project runs-on: ubuntu-latest + if: github.repository == 'ohmyzsh/ohmyzsh' env: GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }} steps: