From ce76857b77eb5111975ea384e5b6891bf9072f65 Mon Sep 17 00:00:00 2001 From: matej-almasi <120648152+matej-almasi@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:31:55 +0100 Subject: [PATCH] Restrict PR validation to specific paths (#8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Restrict PR validation to specific paths * Expand PR Validation path restriction to pull requests * Include PR Validation workflow file in PR Validation paths --------- Co-authored-by: Matej Almasi <¨almasi.mato@gmail.com¨> --- .github/workflows/pr-main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index e56c1b9..b81159b 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -4,9 +4,21 @@ on: pull_request: branches: - main + paths: + - "src" + - "Cargo*" + - ".cargo" + - ".github/workflows/pr-main.yml" + - "rustfmt.toml" push: branches: - main + paths: + - "src" + - "Cargo*" + - ".cargo" + - ".github/workflows/pr-main.yml" + - "rustfmt.toml" env: CARGO_TERM_COLOR: always