From 79fecb59fb877e5a650b115f577c5dfabab6e9f4 Mon Sep 17 00:00:00 2001 From: Matej Almasi <¨almasi.mato@gmail.com¨> Date: Tue, 10 Dec 2024 20:21:48 +0100 Subject: [PATCH 1/3] Restrict PR validation to specific paths --- .github/workflows/pr-main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index e56c1b9..ebbaf91 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -2,11 +2,15 @@ name: PR Validation on: pull_request: - branches: - - main push: branches: - main + paths: + - "src" + - "Cargo*" + - ".cargo" + # - ".github/workflows/pr-main.yml" + - "rustfmt.toml" env: CARGO_TERM_COLOR: always From be842193e1aae0a74ef84ec9cb70c1b7f59a8044 Mon Sep 17 00:00:00 2001 From: Matej Almasi <¨almasi.mato@gmail.com¨> Date: Tue, 10 Dec 2024 20:26:37 +0100 Subject: [PATCH 2/3] Expand PR Validation path restriction to pull requests --- .github/workflows/pr-main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index ebbaf91..c9f1587 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -2,6 +2,14 @@ name: PR Validation on: pull_request: + branches: + - main + paths: + - "src" + - "Cargo*" + - ".cargo" + # - ".github/workflows/pr-main.yml" + - "rustfmt.toml" push: branches: - main From 30834cd6b202f735a4801eada6a83ff2768ae711 Mon Sep 17 00:00:00 2001 From: Matej Almasi <¨almasi.mato@gmail.com¨> Date: Tue, 10 Dec 2024 20:31:13 +0100 Subject: [PATCH 3/3] Include PR Validation workflow file in PR Validation paths --- .github/workflows/pr-main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index c9f1587..b81159b 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -8,7 +8,7 @@ on: - "src" - "Cargo*" - ".cargo" - # - ".github/workflows/pr-main.yml" + - ".github/workflows/pr-main.yml" - "rustfmt.toml" push: branches: @@ -17,7 +17,7 @@ on: - "src" - "Cargo*" - ".cargo" - # - ".github/workflows/pr-main.yml" + - ".github/workflows/pr-main.yml" - "rustfmt.toml" env: