chore: improve workflow running conditions so not everything is run unless needed

This commit is contained in:
Almamu 2025-05-10 21:02:26 +02:00
parent 8881996143
commit bfb7473775
2 changed files with 14 additions and 0 deletions

View File

@ -5,6 +5,10 @@ on:
workflows: [cmake]
branches: [main]
types: [completed]
push:
paths:
- 'packaging/archlinux/**'
- '.github/workflows/**'
jobs:
publish:

View File

@ -2,8 +2,18 @@ name: CMake
on:
push:
paths:
- 'src/**'
- 'CMakeModules/**'
- CMakeLists.txt
- 'protocols/**'
branches: [ "main" ]
pull_request:
paths:
- 'src/**'
- 'CMakeModules/**'
- CMakeLists.txt
- 'protocols/**'
branches: [ "main" ]
env: