From 4a27d29412f68d3926da3e3fd1d1619914b1b5fc Mon Sep 17 00:00:00 2001
From: Mary <mary@mary.zone>
Date: Tue, 13 Jun 2023 11:51:22 +0200
Subject: [PATCH] infra: Sync paths-ignore with release job and attempt to fix
 review assign

---
 .github/workflows/build.yml     | 13 ++++++-------
 .github/workflows/pr_triage.yml | 12 ++++--------
 2 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 886bb04446..bf8fd000a8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,13 +5,12 @@ on:
     inputs: {}
   pull_request:
     branches: [ master ]
-    paths:
-      - '!.github/**'
-      - '!*.yml'
-      - '!*.json'
-      - '!*.config'
-      - '!README.md'
-      - '.github/workflows/*.yml'
+    paths-ignore:
+      - '.github/**'
+      - '*.yml'
+      - '*.json'
+      - '*.config'
+      - 'README.md'
 
 concurrency:
   group: pr-checks-${{ github.event.number }}
diff --git a/.github/workflows/pr_triage.yml b/.github/workflows/pr_triage.yml
index 27a00f1012..e32dd27ad5 100644
--- a/.github/workflows/pr_triage.yml
+++ b/.github/workflows/pr_triage.yml
@@ -1,13 +1,16 @@
 name: "Pull Request Triage"
 on:
   pull_request_target:
+    types: [opened, ready_for_review]
 
 jobs:
   triage:
     permissions:
       contents: read
       pull-requests: write
+
     runs-on: ubuntu-latest
+
     steps:
       - name: Update labels based on changes
         uses: actions/labeler@v4
@@ -19,40 +22,33 @@ jobs:
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
           configuration-path: '.github/assign/audio.yml'
-        if: github.event.action == 'opened'
 
       - name: Auto Assign [CPU]
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
           configuration-path: '.github/assign/cpu.yml'
-        if: github.event.action == 'opened'
 
       - name: Auto Assign [GPU]
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
           configuration-path: '.github/assign/gpu.yml'
-        if: github.event.action == 'opened'
 
       - name: Auto Assign [GUI]
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
           configuration-path: '.github/assign/gui.yml'
-        if: github.event.action == 'opened'
 
       - name: Auto Assign [Horizon]
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
           configuration-path: '.github/assign/horizon.yml'
-        if: github.event.action == 'opened'
 
       - name: Auto Assign [Infra]
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
           configuration-path: '.github/assign/infra.yml'
-        if: github.event.action == 'opened'
 
       - name: Auto Assign [Global]
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
-          configuration-path: '.github/assign/global.yml'
-        if: github.event.action == 'opened'
\ No newline at end of file
+          configuration-path: '.github/assign/global.yml'
\ No newline at end of file