mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-12-06 02:30:26 -08:00
feat(CI/modules_build): trigger on file change instead label (#20997)
This commit is contained in:
parent
d2b88bdc1e
commit
99e5d73beb
1 changed files with 10 additions and 13 deletions
23
.github/workflows/core_modules_build.yml
vendored
23
.github/workflows/core_modules_build.yml
vendored
|
|
@ -4,11 +4,16 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
paths:
|
||||||
- labeled
|
- 'src/*'
|
||||||
- opened
|
- 'src/common/**/*'
|
||||||
- reopened
|
- 'src/genrev/**/*'
|
||||||
- synchronize
|
- 'src/server/*'
|
||||||
|
- 'src/server/apps/**/*'
|
||||||
|
- 'src/server/database/**/*'
|
||||||
|
- 'src/server/game/**/*'
|
||||||
|
- 'src/server/shared/**/*'
|
||||||
|
- 'src/tools/**/*'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
|
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
|
||||||
|
|
@ -27,14 +32,6 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch-modules
|
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch-modules
|
||||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||||
&& !github.event.pull_request.draft
|
|
||||||
&& (
|
|
||||||
github.ref_name == 'master'
|
|
||||||
|| contains(github.event.pull_request.labels.*.name, 'file-cpp'
|
|
||||||
|| github.event.label.name == 'file-cpp'
|
|
||||||
|| contains(github.event.pull_request.labels.*.name, 'run-build')
|
|
||||||
|| github.event.label.name == 'run-build')
|
|
||||||
)
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# This script installs a general list of modules to compile with
|
# This script installs a general list of modules to compile with
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue