Skip to content

ci: skip macOS jobs on CI-only PRs#62

Merged
amcheste merged 1 commit into
developfrom
ci/skip-macos-on-ci-only-changes
Apr 3, 2026
Merged

ci: skip macOS jobs on CI-only PRs#62
amcheste merged 1 commit into
developfrom
ci/skip-macos-on-ci-only-changes

Conversation

@amcheste
Copy link
Copy Markdown
Owner

@amcheste amcheste commented Apr 3, 2026

Summary

  • Adds a detect-changes job (Linux, fast) that runs first on every PR
  • Checks whether any changed file lives outside .github/
  • formula-audit and integration (both macos-latest, 10× cost) now needs: detect-changes and are skipped entirely when only workflow files changed
  • Non-PR events (push to main/develop, tags, workflow_call) always set source_changed=true so scheduled and release runs are unaffected

Test plan

  • This PR itself only touches .github/workflows/validate.yml — formula-audit and integration should be skipped
  • A future PR touching setup.sh, Brewfile.ci, dotfiles/, or scripts/ should still run both jobs normally

🤖 Generated with Claude Code

Adds a detect-changes job that checks whether any files outside .github/
were modified. formula-audit and integration (both macOS runners at 10×
cost) now depend on it and are skipped entirely when a PR only touches
workflow files — not just early-exited, but never scheduled.

Non-PR events (push to main/develop, tags, workflow_call) always run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the ci label Apr 3, 2026
@amcheste amcheste merged commit a00ebfb into develop Apr 3, 2026
8 checks passed
@amcheste amcheste deleted the ci/skip-macos-on-ci-only-changes branch April 3, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant