From 548a17603d9f6fe3d25a73d7e7e15cf5aa3427d5 Mon Sep 17 00:00:00 2001 From: chenziyi Date: Mon, 18 Nov 2024 13:42:09 +0800 Subject: [PATCH] build: disable deploy ci on fork --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7234211f..3281de55 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,9 +2,9 @@ name: deploy on: push: - branches: [master] + branches: [ master ] pull_request: - branches: [master] + branches: [ master ] jobs: test: @@ -43,7 +43,7 @@ jobs: needs: test runs-on: ubuntu-latest - if: github.event_name == 'push' + if: github.event.repository.fork == false && github.event_name == 'push' steps: - uses: actions/checkout@v4