From d68e4630291fdd88e1e084da6f9f5549886f0686 Mon Sep 17 00:00:00 2001 From: Zuoling Rong Date: Sun, 2 Feb 2025 21:02:13 +0800 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b3ebe6c..7b98095 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,8 +4,6 @@ on: push: branches: [ main ] workflow_dispatch: - # 添加fork后的首次运行触发 - fork: # 设置GITHUB_TOKEN的权限 permissions: @@ -20,6 +18,8 @@ concurrency: jobs: build: + # 只在原仓库或fork的仓库中运行 + if: github.repository == 'RZLNB/menav' || github.event.repository.fork == true runs-on: ubuntu-latest steps: - name: Checkout repository @@ -49,7 +49,8 @@ jobs: path: '.' - name: Create deployment guide issue - if: github.event_name == 'fork' + # 只在fork的仓库中创建issue + if: github.event.repository.fork == true uses: actions/github-script@v7 with: script: |