Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): prevent duplicate ci triggers #714

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

JP-Ellis
Copy link
Contributor

@JP-Ellis JP-Ellis commented Jan 8, 2025

Triggering on all 'push' and 'pull_request' events will result in duplicated CI runs in PRs (due to both conditions being met).

Instead, trigger only on pushes to master, or updates to PRs targetting master.

Also removed cron job as all updates to master are checked anyway.

@JP-Ellis JP-Ellis requested a review from tienvx January 8, 2025 23:45
@coveralls
Copy link

coveralls commented Jan 8, 2025

Pull Request Test Coverage Report for Build 12681641455

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 96.313%

Totals Coverage Status
Change from base Build 12608386066: 0.0%
Covered Lines: 2560
Relevant Lines: 2658

💛 - Coveralls

Triggering on all 'push' and 'pull_request' events will result in
duplicated CI runs in PRs (due to both conditions being met).

Instead, trigger only on pushes to `master`, or updates to PRs
targetting `master`.

Also removed cron job as all updates to `master` are checked anyway.

Signed-off-by: JP-Ellis <josh@jpellis.me>
@JP-Ellis JP-Ellis force-pushed the chore/prevent-duplicate-ci-triggers branch from 63d3054 to 753229d Compare January 9, 2025 00:40
@JP-Ellis JP-Ellis enabled auto-merge (rebase) January 9, 2025 00:49
Copy link
Contributor

@tienvx tienvx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank Josh.

I tried to solve this problem before but I don't remember why I stop doing that.

@JP-Ellis JP-Ellis merged commit f13920a into master Jan 9, 2025
20 checks passed
@JP-Ellis JP-Ellis deleted the chore/prevent-duplicate-ci-triggers branch January 9, 2025 01:25
Comment on lines -6 to -8
# Once on the first of the month at 06:00 UTC
schedule:
- cron: 0 6 1 * *
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this code is for early detecting if any dependencies breaking the CI. I think we can remove it

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.

3 participants