Skip to content

fix: prevent duplicate CI runs on merge commits#23

Merged
ramonclaudio merged 2 commits intomainfrom
fix/skip-checks-on-merge
Sep 7, 2025
Merged

fix: prevent duplicate CI runs on merge commits#23
ramonclaudio merged 2 commits intomainfrom
fix/skip-checks-on-merge

Conversation

@ramonclaudio
Copy link
Owner

Summary

  • Skip CI checks on merge commits since they already ran in the PR
  • Reduces GitHub Actions usage and speeds up deployments
  • Security workflow still runs on schedule regardless of merge commits

Changes

  • Added condition to CI workflow to skip merge commits
  • Added condition to Security workflow (skips merge commits except scheduled runs)
  • Uses concurrency groups to cancel duplicate in-progress runs

Testing

  • CI will run on this PR as normal
  • After merge, CI won't run again on the merge commit
  • Scheduled security scans continue to work

Fixes duplicate workflow runs as discussed in #22

ramonclaudio and others added 2 commits September 7, 2025 12:45
- Add conditions to skip CI jobs when merging PRs to main
- CI workflow skips for merge commits (already tested in PR)
- Security workflow skips for merge commits except scheduled runs
- Reduces GitHub Actions usage and speeds up deployments
@ramonclaudio ramonclaudio merged commit 3ff05ee into main Sep 7, 2025
5 checks passed
@ramonclaudio ramonclaudio deleted the fix/skip-checks-on-merge branch September 7, 2025 16:50
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