Procházet zdrojové kódy

support workflow_dispatch for reusable-app-prod.yml

Yuki Takei před 1 rokem
rodič
revize
13d80cf5c7
1 změnil soubory, kde provedl 15 přidání a 1 odebrání
  1. 15 1
      .github/workflows/reusable-app-prod.yml

+ 15 - 1
.github/workflows/reusable-app-prod.yml

@@ -11,6 +11,18 @@ on:
     secrets:
     secrets:
       SLACK_WEBHOOK_URL:
       SLACK_WEBHOOK_URL:
         required: true
         required: true
+  workflow_dispatch:
+    inputs:
+      node-version:
+        required: true
+        type: string
+        default: 20.x
+      skip-e2e-test:
+        type: boolean
+        default: false
+    secrets:
+      SLACK_WEBHOOK_URL:
+        required: true
 
 
 jobs:
 jobs:
 
 
@@ -161,7 +173,9 @@ jobs:
   run-playwright:
   run-playwright:
     needs: [build-prod]
     needs: [build-prod]
 
 
-    if: ${{ !inputs.skip-e2e-test && startsWith(github.head_ref, 'mergify/merge-queue/') }}
+    if: |
+      github.event_name == 'workflow_dispatch' ||
+      (!inputs.skip-e2e-test && startsWith(github.head_ref, 'mergify/merge-queue/'))
 
 
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     container:
     container: