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

docs: fix example workflow running twice for PR commit pushes #498

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

Stratus3D
Copy link
Member

I noticed this issue on a couple projects - the checks would run twice when a commit was pushed to an already opened PR.

With the changes here the workflow is triggered for PR updates (e.g. a PR opened or new commit pushed) OR when a new commit is pushed to the main branch. Restricting pushes to the main branch ensures checks only run once per PR commit.

@jthegedus
Copy link
Contributor

jthegedus commented Dec 9, 2022

Yeah, this seems fine to me. As an FYI I am reworking this repo to reduce maintenance and improve accessibility to contribute. As an aside, I also no longer recommend the scheduled runs as GitHub would automatically disable after X amount of consecutive runs without changes to the git tree.

@jthegedus jthegedus changed the title Fix issue with example workflow running twice for pull request commit pushes docs: fix example workflow running twice for PR commit pushes Dec 9, 2022
@jthegedus jthegedus merged commit d7b7b88 into master Dec 9, 2022
@jthegedus jthegedus deleted the Stratus3D-patch-1 branch December 9, 2022 03:24
@Stratus3D
Copy link
Member Author

I've personally never found scheduled runs to be useful. The CI builds I typically run are locked down enough that nothing breaks between commits.

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