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

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

View file

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

View file

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