63345c4e5dd8ce210a43c9e89a883a262e755c69
- Author
- Marc Cornellà <hello@mcornella.com>
- Committer
- Marc Cornellà <hello@mcornella.com>
- Date
Message
ci: disable GitHub Actions on forks
Diff
1diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
2index 7ab7efdd6edab425c4735cf2b0ccdf21e2513fd8..cdadc143450c6030e19d80cb0b18b92fce5f1441 100644
3--- a/.github/workflows/main.yml
4+++ b/.github/workflows/main.yml
5@@ -14,6 +14,7 @@ jobs:
6 tests:
7 name: Run tests
8 runs-on: ${{ matrix.os }}
9+ if: github.repository == 'ohmyzsh/ohmyzsh'
10 strategy:
11 matrix:
12 os: [ubuntu-latest, macos-latest]
13diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml
14index 013255890f9dd8f81a5f1743eda5469d161ebc87..2a27b70fc5db307640305d96012512e62b459f66 100644
15--- a/.github/workflows/project.yml
16+++ b/.github/workflows/project.yml
17@@ -9,6 +9,7 @@ jobs:
18 add-to-project:
19 name: Add to project
20 runs-on: ubuntu-latest
21+ if: github.repository == 'ohmyzsh/ohmyzsh'
22 env:
23 GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
24 steps: