From 1401657a6d46663cc51bf4c1fd3b57f063a1ae82 Mon Sep 17 00:00:00 2001 From: kadeshar Date: Tue, 24 Feb 2026 22:10:09 +0100 Subject: [PATCH] Modify action to workaround github settings (#2167) Github action modification --- .github/workflows/codestyle_cpp.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codestyle_cpp.yml b/.github/workflows/codestyle_cpp.yml index 06573289..37f28acf 100644 --- a/.github/workflows/codestyle_cpp.yml +++ b/.github/workflows/codestyle_cpp.yml @@ -6,10 +6,6 @@ on: - reopened - synchronize - ready_for_review - paths: - - src/** - - "!README.md" - - "!docs/**" concurrency: group: "codestyle-cppcheck-${{ github.event.pull_request.number }}" @@ -22,13 +18,27 @@ jobs: if: github.event.pull_request.draft == false steps: - uses: actions/checkout@v4 + + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + cpp: + - 'src/**' + - '!README.md' + - '!docs/**' + - name: Setup python + if: steps.filter.outputs.cpp == 'true' uses: actions/setup-python@v5 with: python-version: '3.10' - name: AzerothCore codestyle + if: steps.filter.outputs.cpp == 'true' run: python ./apps/codestyle/codestyle-cpp.py + - name: C++ Advanced + if: steps.filter.outputs.cpp == 'true' run: | sudo apt update -y sudo apt install -y cppcheck