From e12771b10e72fe77e83f2f1c72f1a2635c6972e1 Mon Sep 17 00:00:00 2001 From: Alexis Maiquez Date: Sat, 10 May 2025 21:08:55 +0200 Subject: [PATCH] chore: improve workflow running conditions so not everything is run unless needed (#297) --- .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: