CI: More workflow paths updates (#6227)

* update trigger paths

* change to include paths trigger pattern

* refine selection

* more paths

* fix

* revert push trigger and add hint
This commit is contained in:
tooomm 2025-10-08 02:17:02 +02:00 committed by ebbit1q
parent b6d04669a7
commit 0561286145
6 changed files with 17 additions and 11 deletions

View file

@ -1,18 +1,19 @@
name: Code Style (C++) name: Code Style (C++)
on: on:
# push trigger not needed for linting, we do not allow direct pushes to master
pull_request: pull_request:
paths: paths:
- '*/**' # matches all files not in root - '*/**' # matches all files not in root
- '!**.md' - '!**.md'
- '!.ci/**' - '!.ci/**'
- '!.github/**' - '!.github/**'
- '!.husky' - '!.husky/**'
- '!.tx' - '!.tx/**'
- '!doc/**' - '!doc/**'
- '!webclient/**' - '!webclient/**'
- '.github/workflows/desktop-lint.yml'
- '.ci/lint_cpp.sh' - '.ci/lint_cpp.sh'
- '.github/workflows/desktop-lint.yml'
- '.clang-format' - '.clang-format'
- '.cmake-format.json' - '.cmake-format.json'
- 'format.sh' - 'format.sh'

View file

@ -7,6 +7,7 @@ on:
- cron: '0 0 15 1,4,7,10 *' - cron: '0 0 15 1,4,7,10 *'
pull_request: pull_request:
paths: paths:
- '.tx/**'
- '.github/workflows/translations-pull.yml' - '.github/workflows/translations-pull.yml'
jobs: jobs:

View file

@ -7,6 +7,7 @@ on:
- cron: '0 0 1 1,4,7,10 *' - cron: '0 0 1 1,4,7,10 *'
pull_request: pull_request:
paths: paths:
- '.ci/update_translation_source_strings.sh'
- '.github/workflows/translations-push.yml' - '.github/workflows/translations-push.yml'
jobs: jobs:

View file

@ -5,14 +5,16 @@ on:
branches: branches:
- master - master
paths: paths:
- '.github/workflows/web-*.yml' - '.husky/**'
- 'webclient/**' - 'webclient/**'
- '!**.md' - '!**.md'
- '.github/workflows/web-build.yml'
pull_request: pull_request:
paths: paths:
- '.github/workflows/web-*.yml' - '.husky/**'
- 'webclient/**' - 'webclient/**'
- '!**.md' - '!**.md'
- '.github/workflows/web-build.yml'
jobs: jobs:
build-web: build-web:

View file

@ -1,11 +1,12 @@
name: Code Style (TypeScript) name: Code Style (TypeScript)
on: on:
# push trigger not needed for linting, we do not allow direct pushes to master
pull_request: pull_request:
paths: paths:
- '.github/workflows/web-*.yml'
- 'webclient/**' - 'webclient/**'
- '!**.md' - '!**.md'
- '.github/workflows/web-lint.yml'
jobs: jobs:
ESLint: ESLint:

View file

@ -12,18 +12,18 @@ olddir="$PWD"
cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with special links etc. cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with special links etc.
# defaults # defaults
include=("common" \ include=("cockatrice/src" \
"cockatrice/src" \ "common" \
"dbconverter/src" \ "dbconverter/src" \
"oracle/src" \ "oracle/src" \
"servatrice/src" \ "servatrice/src" \
"tests") "tests")
exclude=("servatrice/src/smtp" \ exclude=("common/sfmt" \
"common/sfmt" \
"common/lib" \ "common/lib" \
"oracle/src/zip" \ "oracle/src/zip" \
"oracle/src/lzma" \ "oracle/src/lzma" \
"oracle/src/qt-json") "oracle/src/qt-json" \
"servatrice/src/smtp")
exts=("cpp" "h" "proto") exts=("cpp" "h" "proto")
cf_cmd="clang-format" cf_cmd="clang-format"
branch="origin/master" branch="origin/master"