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: