From 85429ce59c2ef812b20f315f0c91686afe316ca7 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 20 Jul 2023 11:56:43 -0400 Subject: [PATCH] Restrict when to rerun build task --- .github/workflows/build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22e8a52..29094b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,14 @@ -on: [push, pull_request] - name: Build +on: + pull_request: + push: + paths: + - '.github/workflows/build.yml' + - '**/Cargo.toml' + - '**/Cargo.lock' + - '**/src/*' + jobs: build_and_test: name: Rust project