chore: improve workflow running conditions so not everything is run unless needed (#297)

This commit is contained in:
Alexis Maiquez 2025-05-10 21:08:55 +02:00 committed by GitHub
parent 9cb2e60960
commit e12771b10e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

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

View File

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