mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-05 06:17:56 +00:00
32 lines
817 B
YAML
32 lines
817 B
YAML
name: SQL Codestyle
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
paths:
|
|
- data/**
|
|
- "!README.md"
|
|
- "!docs/**"
|
|
|
|
concurrency:
|
|
# New commits on a PR cancel the still-running codestyle check on the old
|
|
# commit. github.ref is refs/pull/<N>/merge, so the group is stable per PR.
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
triage:
|
|
runs-on: ubuntu-latest
|
|
name: SQL
|
|
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Setup python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: '3.10'
|
|
- name: AzerothCore codestyle
|
|
run: python ./apps/codestyle/codestyle-sql.py
|