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: prevent duplicate CI runs #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

chore: prevent duplicate CI runs #117

wants to merge 2 commits into from

Conversation

kiendang
Copy link
Collaborator

@kiendang kiendang commented Aug 5, 2023

We have this in our workflows

on: [push, pull_request]

This is redundant since when someone pushes to a PR branch, it triggers both push and pull_request synchronized which makes the action runs twice. Checking every PR CI and you will see we have the every check run twice (push) and (pull_request).

Just on: push is enough.

@kiendang kiendang requested a review from erikwrede August 5, 2023 16:52
Copy link
Member

@erikwrede erikwrede left a comment

Choose a reason for hiding this comment

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

If I'm not mistaken, the push condition does not apply to forks - that's why the PR trigger is necessary. Setting push to branch Master only should do the trick 😊

@kiendang
Copy link
Collaborator Author

kiendang commented Aug 5, 2023

Yup that makes perfect sense.

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.

2 participants