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

Trigger CI on push or pull_request but not both #5142

Merged
merged 5 commits into from
Jan 20, 2022

Conversation

andersy005
Copy link
Member

@andersy005 andersy005 commented Apr 12, 2021

Here's a snippet of how this looks like when a pull request is created on the same main repository:

Screen Shot 2021-04-12 at 8 10 27 AM

Cc @keewis

Comment on lines 20 to 22
concurrent_skipping: "same_content"
skip_after_successful_duplicate: "true"
do_not_skip: '["pull_request", "workflow_dispatch"]'
Copy link
Member Author

@andersy005 andersy005 Apr 12, 2021

Choose a reason for hiding this comment

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

Incidentally, this action can be used to automatically skip CI runs for documentation related PRs (without needing to use the [skip-ci] in the commit message).

with:
 paths_ignore: '["**/doc/**"]'

Should we enable this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we enable this?

👍, it's really easy to forget adding that flag

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great idea!

Copy link
Collaborator

@keewis keewis left a comment

Choose a reason for hiding this comment

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

thanks for taking up my comment in that PR. I've got a question regarding the version of the action, but otherwise this should be good to go.

.github/workflows/ci-pre-commit.yml Outdated Show resolved Hide resolved
@andersy005 andersy005 marked this pull request as draft May 3, 2021 20:58
@andersy005 andersy005 closed this Jan 14, 2022
@andersy005 andersy005 deleted the update-ci branch January 14, 2022 22:50
@andersy005 andersy005 restored the update-ci branch January 14, 2022 22:50
@andersy005 andersy005 reopened this Jan 14, 2022
@andersy005 andersy005 marked this pull request as ready for review January 15, 2022 00:42
@andersy005
Copy link
Member Author

Okay, I believe this is ready. I may have missed some corner cases (I'm happy to address these in separate PRs).

Screen Shot 2022-01-14 at 5 41 47 PM

Screen Shot 2022-01-14 at 5 42 00 PM

@andersy005 andersy005 added needs review CI Continuous Integration tools labels Jan 15, 2022
@dcherian
Copy link
Contributor

Thanks @andersy005

@dcherian dcherian merged commit a4df906 into pydata:main Jan 20, 2022
@andersy005 andersy005 deleted the update-ci branch June 16, 2023 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants