Browse Source

ci: disable GitHub Actions on forks

Marc Cornellà 2 years ago
parent
commit
63345c4e5d
2 changed files with 2 additions and 0 deletions
  1. 1 0
      .github/workflows/main.yml
  2. 1 0
      .github/workflows/project.yml

+ 1 - 0
.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]

+ 1 - 0
.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: