Skip to content

chore: add path filters to workflows to skip unnecessary runs - #70

Merged
acockrell merged 1 commit into
mainfrom
chore/workflow-path-filters
May 8, 2026
Merged

chore: add path filters to workflows to skip unnecessary runs#70
acockrell merged 1 commit into
mainfrom
chore/workflow-path-filters

Conversation

@acockrell

Copy link
Copy Markdown
Collaborator

Summary

Adds paths filters to pr-checks.yml and build.yml so Go checks only run when relevant files change. Renovate config updates, docs, and other non-code changes no longer trigger the full CI suite.

pr-checks.yml triggers on changes to:

  • **/*.go
  • go.mod / go.sum
  • Makefile
  • Dockerfile (Trivy scans the filesystem)
  • .github/workflows/pr-checks.yml (so CI validates itself)

build.yml triggers on changes to:

  • **/*.go
  • go.mod / go.sum
  • Makefile
  • .github/workflows/build.yml

release.yml is tag-triggered and unchanged — always appropriate to run on release.

Note

If required status checks are added to branch protection in future, skipped workflows count as "not run" rather than "passed" and may block merges. Not an issue today since branch protection has no required checks configured.

@acockrell
acockrell merged commit 8b5e6e6 into main May 8, 2026
8 checks passed
@acockrell
acockrell deleted the chore/workflow-path-filters branch May 8, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant