瀏覽代碼

fix: cicd , add pull_request_target

孙高猛 2 年之前
父節點
當前提交
6206ceb49b
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      .github/workflows/deploy_preview.yml

+ 4 - 4
.github/workflows/deploy_preview.yml

@@ -1,11 +1,11 @@
 name: VercelPreviewDeployment
 
 on:
+  pull_request_target:
+    types:
+      - opened
+      - synchronize
   workflow_dispatch:
-    inputs:
-      branchName:
-        description: 'Branch to deploy'
-        required: true
 
 env:
   VERCEL_TEAM: ${{ secrets.VERCEL_TEAM }}