infra: Fix PR triage workflow glob patterns (#5297)

* Use glob patterns to match file paths

* Update ignored paths for releases

* Adjust build.yml as well

* Add names to auto-assign steps

* Fix developer team name

* Allow build workflows to run if workflows changed
This commit is contained in:
TSRBerry 2023-06-12 20:42:27 +02:00 committed by GitHub
parent 915a0f7173
commit 5a02433080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 44 deletions

View file

@ -1,4 +1,4 @@
addReviewers: true addReviewers: true
reviewers: reviewers:
- Developers - Ryujinx/developers

38
.github/labeler.yml vendored
View file

@ -1,33 +1,33 @@
audio: 'src/Ryujinx.Audio*' audio: 'src/Ryujinx.Audio*/**'
cpu: cpu:
- 'src/ARMeilleure//*' - 'src/ARMeilleure/**'
- 'src/Ryujinx.Cpu/*' - 'src/Ryujinx.Cpu/**'
- 'src/Ryujinx.Memory/*' - 'src/Ryujinx.Memory/**'
gpu: gpu:
- 'src/Ryujinx.Graphics.*' - 'src/Ryujinx.Graphics.*/**'
- 'src/Spv.Generator/*' - 'src/Spv.Generator/**'
- 'src/Ryujinx.ShaderTools/*' - 'src/Ryujinx.ShaderTools/**'
'graphics-backend:opengl': 'src/Ryujinx.Graphics.OpenGL/*' 'graphics-backend:opengl': 'src/Ryujinx.Graphics.OpenGL/**'
'graphics-backend:vulkan': 'graphics-backend:vulkan':
- 'src/Ryujinx.Graphics.Vulkan/*' - 'src/Ryujinx.Graphics.Vulkan/**'
- 'src/Spv.Generator/*' - 'src/Spv.Generator/**'
gui: gui:
- 'src/Ryujinx/*' - 'src/Ryujinx/**'
- 'src/Ryujinx.Ui.Common/*' - 'src/Ryujinx.Ui.Common/**'
- 'src/Ryujinx.Ui.LocaleGenerator/*' - 'src/Ryujinx.Ui.LocaleGenerator/**'
- 'src/Ryujinx.Ava/*' - 'src/Ryujinx.Ava/**'
horizon: horizon:
- 'src/Ryujinx.HLE/*' - 'src/Ryujinx.HLE/**'
- 'src/Ryujinx.Horizon*' - 'src/Ryujinx.Horizon*/**'
kernel: 'src/Ryujinx.HLE/HOS/Kernel/*' kernel: 'src/Ryujinx.HLE/HOS/Kernel/**'
infra: infra:
- '.github/*' - '.github/**'
- 'distribution/*' - 'distribution/**'
- 'Directory.Packages.props' - 'Directory.Packages.props'

View file

@ -3,20 +3,15 @@ name: Build job
on: on:
workflow_dispatch: workflow_dispatch:
inputs: {} inputs: {}
#push:
# branches: [ master ]
# paths-ignore:
# - '.github/*'
# - '.github/ISSUE_TEMPLATE/**'
# - '*.yml'
# - 'README.md'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
paths-ignore: paths:
- '.github/*' - '!.github/**'
- '.github/ISSUE_TEMPLATE/**' - '!*.yml'
- '*.yml' - '!*.json'
- 'README.md' - '!*.config'
- '!README.md'
- '.github/workflows/*.yml'
concurrency: concurrency:
group: pr-checks-${{ github.event.number }} group: pr-checks-${{ github.event.number }}

View file

@ -1,6 +1,6 @@
name: "Pull Request Triage" name: "Pull Request Triage"
on: on:
- pull_request_target pull_request_target:
jobs: jobs:
triage: triage:
@ -15,37 +15,44 @@ jobs:
sync-labels: true sync-labels: true
dot: true dot: true
- uses: kentaro-m/auto-assign-action@v1.2.5 - name: Auto Assign [Audio]
uses: kentaro-m/auto-assign-action@v1
with: with:
configuration-path: '.github/assign/audio.yml' configuration-path: '.github/assign/audio.yml'
if: github.event.action == 'opened' if: github.event.action == 'opened'
- uses: kentaro-m/auto-assign-action@v1.2.5 - name: Auto Assign [CPU]
uses: kentaro-m/auto-assign-action@v1
with: with:
configuration-path: '.github/assign/cpu.yml' configuration-path: '.github/assign/cpu.yml'
if: github.event.action == 'opened' if: github.event.action == 'opened'
- uses: kentaro-m/auto-assign-action@v1.2.5 - name: Auto Assign [GPU]
uses: kentaro-m/auto-assign-action@v1
with: with:
configuration-path: '.github/assign/gpu.yml' configuration-path: '.github/assign/gpu.yml'
if: github.event.action == 'opened' if: github.event.action == 'opened'
- uses: kentaro-m/auto-assign-action@v1.2.5 - name: Auto Assign [GUI]
uses: kentaro-m/auto-assign-action@v1
with: with:
configuration-path: '.github/assign/gui.yml' configuration-path: '.github/assign/gui.yml'
if: github.event.action == 'opened' if: github.event.action == 'opened'
- uses: kentaro-m/auto-assign-action@v1.2.5 - name: Auto Assign [Horizon]
uses: kentaro-m/auto-assign-action@v1
with: with:
configuration-path: '.github/assign/horizon.yml' configuration-path: '.github/assign/horizon.yml'
if: github.event.action == 'opened' if: github.event.action == 'opened'
- uses: kentaro-m/auto-assign-action@v1.2.5 - name: Auto Assign [Infra]
uses: kentaro-m/auto-assign-action@v1
with: with:
configuration-path: '.github/assign/infra.yml' configuration-path: '.github/assign/infra.yml'
if: github.event.action == 'opened' if: github.event.action == 'opened'
- uses: kentaro-m/auto-assign-action@v1.2.5 - name: Auto Assign [Global]
uses: kentaro-m/auto-assign-action@v1
with: with:
configuration-path: '.github/assign/global.yml' configuration-path: '.github/assign/global.yml'
if: github.event.action == 'opened' if: github.event.action == 'opened'

View file

@ -6,9 +6,10 @@ on:
push: push:
branches: [ master ] branches: [ master ]
paths-ignore: paths-ignore:
- '.github/*' - '.github/**'
- '.github/ISSUE_TEMPLATE/**'
- '*.yml' - '*.yml'
- '*.json'
- '*.config'
- 'README.md' - 'README.md'
concurrency: release concurrency: release