From bfb74737751cc05c7567dea7ae2dfe25e321e35c Mon Sep 17 00:00:00 2001 From: Almamu Date: Sat, 10 May 2025 21:02:26 +0200 Subject: [PATCH] chore: improve workflow running conditions so not everything is run unless needed --- .github/workflows/arch.yml | 4 ++++ .github/workflows/cmake.yml | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml index f9d7ec6..acf0ba9 100644 --- a/.github/workflows/arch.yml +++ b/.github/workflows/arch.yml @@ -5,6 +5,10 @@ on: workflows: [cmake] branches: [main] types: [completed] + push: + paths: + - 'packaging/archlinux/**' + - '.github/workflows/**' jobs: publish: diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 2f6fdb0..d4be00a 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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: