summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-01-03 13:10:53 +0100
committerMarc Cornellà <hello@mcornella.com>2022-01-03 13:10:53 +0100
commit63345c4e5dd8ce210a43c9e89a883a262e755c69 (patch)
tree236202795d163379baff9bae2a0e27ca95686f8c /.github
parent512839ef7800fa32d78c47f160bdae3293ad22c1 (diff)
downloadzsh-63345c4e5dd8ce210a43c9e89a883a262e755c69.tar.gz
zsh-63345c4e5dd8ce210a43c9e89a883a262e755c69.tar.bz2
zsh-63345c4e5dd8ce210a43c9e89a883a262e755c69.zip
ci: disable GitHub Actions on forks
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml1
-rw-r--r--.github/workflows/project.yml1
2 files changed, 2 insertions, 0 deletions
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: