Przeglądaj źródła

change condition to skip reg-suit

Yuki Takei 4 lat temu
rodzic
commit
03a336c128

+ 4 - 3
.github/workflows/ci-app-prod.yml

@@ -37,12 +37,13 @@ jobs:
 
     uses: weseek/growi/.github/workflows/reusable-app-reg-suit.yml@master
 
-    if: |
-      !contains( github.event.pull_request.labels.*.name, 'dependencies' ) &&
-      !contains( github.event.pull_request.labels.*.name, 'github_actions' )
+    if: always()
 
     with:
       node-version: 16.x
+      skip-reg-suit: |
+        !contains( github.event.pull_request.labels.*.name, 'dependencies' ) &&
+        !contains( github.event.pull_request.labels.*.name, 'github_actions' )
       cypress-report-artifact-name: Cypress report
     secrets:
       REG_NOTIFY_GITHUB_PLUGIN_CLIENTID: ${{ secrets.REG_NOTIFY_GITHUB_PLUGIN_CLIENTID }}

+ 4 - 0
.github/workflows/reusable-app-reg-suit.yml

@@ -9,6 +9,8 @@ on:
       checkout-ref:
         type: string
         default: ${{ github.head_ref }}
+      skip-reg-suit:
+        type: boolean
       cypress-report-artifact-name:
         required: true
         type: string
@@ -33,6 +35,8 @@ jobs:
     # https://github.com/weseek/growi/settings/environments/376165508/edit
     environment: VRT
 
+    if: ${{ !inputs.skip-reg-suit }}
+
     env:
       REG_NOTIFY_GITHUB_PLUGIN_CLIENTID: ${{ secrets.REG_NOTIFY_GITHUB_PLUGIN_CLIENTID }}
       AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}