-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
GHA
concurrency
#6210
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
GHA
concurrency
#6210
Conversation
Lgtm! Thanks @aaronspring |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, this is great! Thanks, @aaronspring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, @aaronspring! It's my understanding that the concurrency
ensures that there are no duplicate jobs for the same ref
. I was wondering if we still need the skip-duplicate-jobs
as part of the CI?
In my understanding we can get rid of fkirc/skip-duplicate-actions and cancel-duplicate-runs.yaml |
if: | | ||
github.repository == 'pydata/xarray' | ||
&& (github.event_name == 'push' || github.event_name == 'pull_request') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aaronspring, we may want to keep this condition so as to avoid running the CI on forks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn’t we keep this? @max-sixty @andersy005
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should! @aaronspring, can you open a new PR for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I merged too early. @aaronspring if you can open a PR then great, otherwise I can as penance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put the condition in detect-ci-trigger
in #6223
Great — merging, thanks @aaronspring ! |
whats-new.rst
api.rst
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency
instead ofcancel-duplicate-runs.yaml