From d696373abcb35940708b6409cfa8711663523db1 Mon Sep 17 00:00:00 2001 From: Andrew Cockrell <1480054+acockrell@users.noreply.github.com> Date: Thu, 7 May 2026 20:05:26 -0700 Subject: [PATCH] chore: add path filters to workflows to skip unnecessary runs --- .github/workflows/build.yml | 6 ++++++ .github/workflows/pr-checks.yml | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 977266d..ea34ca0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,12 @@ on: push: branches: - main + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' + - 'Makefile' + - '.github/workflows/build.yml' # Cancel in-progress runs when a new commit is pushed concurrency: diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index a961103..d0b7a08 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -3,6 +3,13 @@ name: PR Checks on: pull_request: types: [opened, synchronize, reopened] + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' + - 'Makefile' + - 'Dockerfile' + - '.github/workflows/pr-checks.yml' # Cancel in-progress runs when a new commit is pushed concurrency: