From a5a8739e5eaf180c8e8bc908f6c40c278884beb5 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 18 Aug 2023 19:37:44 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20PR=20=E8=A2=AB=E6=89=B9=E5=87=86=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E5=90=8E=E6=89=8D=E4=BC=9A=E6=89=A7=E8=A1=8C=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1f00cbf9..81324dc2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,15 +4,18 @@ on: # 推送时执行 push: branches: [dev] - # pr 时执行 - pull_request: + # pr 被批准合并时执行 1 + pull_request_review: branches: [dev] + types: [submitted] # 可手动执行 workflow_dispatch: jobs: # 部署后端服务 deploy-server: + # pr 被批准合并时执行 2 + if: github.event.review.state == 'approved' runs-on: ubuntu-latest steps: # 1、检出源码