Просмотр исходного кода

ci: trigger code-qa workflow on pull_request_review approval (#11636)

Hannes Rudolph 1 месяц назад
Родитель
Сommit
a55c85a8ec
1 измененных файлов с 15 добавлено и 0 удалено
  1. 15 0
      .github/workflows/code-qa.yml

+ 15 - 0
.github/workflows/code-qa.yml

@@ -7,9 +7,15 @@ on:
     pull_request:
         types: [opened, reopened, ready_for_review, synchronize]
         branches: [main]
+    pull_request_review:
+        types: [submitted]
+        branches: [main]
 
 jobs:
     check-translations:
+        if: |
+            github.event_name != 'pull_request_review' ||
+            github.event.review.state == 'approved'
         runs-on: ubuntu-latest
         steps:
             - name: Checkout code
@@ -20,6 +26,9 @@ jobs:
               run: node scripts/find-missing-translations.js
 
     knip:
+        if: |
+            github.event_name != 'pull_request_review' ||
+            github.event.review.state == 'approved'
         runs-on: ubuntu-latest
         steps:
             - name: Checkout code
@@ -30,6 +39,9 @@ jobs:
               run: pnpm knip
 
     compile:
+        if: |
+            github.event_name != 'pull_request_review' ||
+            github.event.review.state == 'approved'
         runs-on: ubuntu-latest
         steps:
             - name: Checkout code
@@ -43,6 +55,9 @@ jobs:
 
     unit-test:
         name: platform-unit-test (${{ matrix.name }})
+        if: |
+            github.event_name != 'pull_request_review' ||
+            github.event.review.state == 'approved'
         runs-on: ${{ matrix.os }}
         strategy:
             matrix: