From 4d942387fae50d54804b6a46275707bcdcaf21dc Mon Sep 17 00:00:00 2001 From: zzdhyb <139191187+zzdhybthu@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:44:21 +0800 Subject: [PATCH] build: disable deploy ci on fork (#1465) --- .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