From f0bb6f78ceeecc32e31e5986ec38347044e5684e Mon Sep 17 00:00:00 2001 From: grtcdr Date: Tue, 29 Oct 2024 13:16:57 +0100 Subject: [PATCH] Trigger CI jobs only when source code is changed --- .github/workflows/macchina.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macchina.yml b/.github/workflows/macchina.yml index 243fe6b..1d58ff4 100644 --- a/.github/workflows/macchina.yml +++ b/.github/workflows/macchina.yml @@ -1,7 +1,17 @@ -on: [push, pull_request] - name: CI +on: + push: + - 'src/**' + - 'vendor/**' + - 'Cargo.toml' + - 'Cargo.lock' + pull_request: + - 'src/**' + - 'vendor/**' + - 'Cargo.toml' + - 'Cargo.lock' + jobs: lint: runs-on: ubuntu-latest