mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
Modify action to workaround github settings (#2167)
Github action modification
This commit is contained in:
parent
e7d5eaabac
commit
1401657a6d
18
.github/workflows/codestyle_cpp.yml
vendored
18
.github/workflows/codestyle_cpp.yml
vendored
@ -6,10 +6,6 @@ on:
|
|||||||
- reopened
|
- reopened
|
||||||
- synchronize
|
- synchronize
|
||||||
- ready_for_review
|
- ready_for_review
|
||||||
paths:
|
|
||||||
- src/**
|
|
||||||
- "!README.md"
|
|
||||||
- "!docs/**"
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "codestyle-cppcheck-${{ github.event.pull_request.number }}"
|
group: "codestyle-cppcheck-${{ github.event.pull_request.number }}"
|
||||||
@ -22,13 +18,27 @@ jobs:
|
|||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: dorny/paths-filter@v3
|
||||||
|
id: filter
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
cpp:
|
||||||
|
- 'src/**'
|
||||||
|
- '!README.md'
|
||||||
|
- '!docs/**'
|
||||||
|
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
|
if: steps.filter.outputs.cpp == 'true'
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
- name: AzerothCore codestyle
|
- name: AzerothCore codestyle
|
||||||
|
if: steps.filter.outputs.cpp == 'true'
|
||||||
run: python ./apps/codestyle/codestyle-cpp.py
|
run: python ./apps/codestyle/codestyle-cpp.py
|
||||||
|
|
||||||
- name: C++ Advanced
|
- name: C++ Advanced
|
||||||
|
if: steps.filter.outputs.cpp == 'true'
|
||||||
run: |
|
run: |
|
||||||
sudo apt update -y
|
sudo apt update -y
|
||||||
sudo apt install -y cppcheck
|
sudo apt install -y cppcheck
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user