Răsfoiți Sursa

infra: Sync paths-ignore with release job and attempt to fix review assign

Mary 2 ani în urmă
părinte
comite
4a27d29412
2 a modificat fișierele cu 10 adăugiri și 15 ștergeri
  1. 6 7
      .github/workflows/build.yml
  2. 4 8
      .github/workflows/pr_triage.yml

+ 6 - 7
.github/workflows/build.yml

@@ -5,13 +5,12 @@ on:
     inputs: {}
     inputs: {}
   pull_request:
   pull_request:
     branches: [ master ]
     branches: [ master ]
-    paths:
-      - '!.github/**'
-      - '!*.yml'
-      - '!*.json'
-      - '!*.config'
-      - '!README.md'
-      - '.github/workflows/*.yml'
+    paths-ignore:
+      - '.github/**'
+      - '*.yml'
+      - '*.json'
+      - '*.config'
+      - 'README.md'
 
 
 concurrency:
 concurrency:
   group: pr-checks-${{ github.event.number }}
   group: pr-checks-${{ github.event.number }}

+ 4 - 8
.github/workflows/pr_triage.yml

@@ -1,13 +1,16 @@
 name: "Pull Request Triage"
 name: "Pull Request Triage"
 on:
 on:
   pull_request_target:
   pull_request_target:
+    types: [opened, ready_for_review]
 
 
 jobs:
 jobs:
   triage:
   triage:
     permissions:
     permissions:
       contents: read
       contents: read
       pull-requests: write
       pull-requests: write
+
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
+
     steps:
     steps:
       - name: Update labels based on changes
       - name: Update labels based on changes
         uses: actions/labeler@v4
         uses: actions/labeler@v4
@@ -19,40 +22,33 @@ jobs:
         uses: kentaro-m/auto-assign-action@v1.2.5
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
         with:
           configuration-path: '.github/assign/audio.yml'
           configuration-path: '.github/assign/audio.yml'
-        if: github.event.action == 'opened'
 
 
       - name: Auto Assign [CPU]
       - name: Auto Assign [CPU]
         uses: kentaro-m/auto-assign-action@v1.2.5
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
         with:
           configuration-path: '.github/assign/cpu.yml'
           configuration-path: '.github/assign/cpu.yml'
-        if: github.event.action == 'opened'
 
 
       - name: Auto Assign [GPU]
       - name: Auto Assign [GPU]
         uses: kentaro-m/auto-assign-action@v1.2.5
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
         with:
           configuration-path: '.github/assign/gpu.yml'
           configuration-path: '.github/assign/gpu.yml'
-        if: github.event.action == 'opened'
 
 
       - name: Auto Assign [GUI]
       - name: Auto Assign [GUI]
         uses: kentaro-m/auto-assign-action@v1.2.5
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
         with:
           configuration-path: '.github/assign/gui.yml'
           configuration-path: '.github/assign/gui.yml'
-        if: github.event.action == 'opened'
 
 
       - name: Auto Assign [Horizon]
       - name: Auto Assign [Horizon]
         uses: kentaro-m/auto-assign-action@v1.2.5
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
         with:
           configuration-path: '.github/assign/horizon.yml'
           configuration-path: '.github/assign/horizon.yml'
-        if: github.event.action == 'opened'
 
 
       - name: Auto Assign [Infra]
       - name: Auto Assign [Infra]
         uses: kentaro-m/auto-assign-action@v1.2.5
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
         with:
           configuration-path: '.github/assign/infra.yml'
           configuration-path: '.github/assign/infra.yml'
-        if: github.event.action == 'opened'
 
 
       - name: Auto Assign [Global]
       - name: Auto Assign [Global]
         uses: kentaro-m/auto-assign-action@v1.2.5
         uses: kentaro-m/auto-assign-action@v1.2.5
         with:
         with:
-          configuration-path: '.github/assign/global.yml'
-        if: github.event.action == 'opened'
+          configuration-path: '.github/assign/global.yml'