Skip to content

Commit

Permalink
build: disable deploy ci on fork
Browse files Browse the repository at this point in the history
  • Loading branch information
zzdhybthu committed Nov 18, 2024
1 parent 3748a4e commit 548a176
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: deploy

on:
push:
branches: [master]
branches: [ master ]
pull_request:
branches: [master]
branches: [ master ]

jobs:
test:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 548a176

Please sign in to comment.