Skip to content

Commit

Permalink
feat(CI/modules_build): trigger on file change instead label (azeroth…
Browse files Browse the repository at this point in the history
  • Loading branch information
sudlud authored Dec 21, 2024
1 parent d2b88bd commit 99e5d73
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/core_modules_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ on:
branches:
- 'master'
pull_request:
types:
- labeled
- opened
- reopened
- synchronize
paths:
- 'src/*'
- 'src/common/**/*'
- 'src/genrev/**/*'
- 'src/server/*'
- 'src/server/apps/**/*'
- 'src/server/database/**/*'
- 'src/server/game/**/*'
- 'src/server/shared/**/*'
- 'src/tools/**/*'

concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
Expand All @@ -27,14 +32,6 @@ jobs:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}-nopch-modules
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:
- uses: actions/checkout@v4
# This script installs a general list of modules to compile with
Expand Down

0 comments on commit 99e5d73

Please sign in to comment.