rubocop / rubocop-capybara

Code style checking for Capybara files.
https://docs.rubocop.org/rubocop-capybara
MIT License
41 stars 8 forks source link

Apply concurrency for GHA workflow `pull_requests` events only #21

Closed ydah closed 1 year ago

ydah commented 1 year ago

Same as: https://github.com/rubocop/rubocop-rspec/pull/1544 https://github.com/rubocop/rubocop/pull/11414

The following are included as keys to the group. ${{ github.head_ref || github.run_id }}

This allows concurrency to work only with Push to PullRequest, and cancels all but the most recent push for successive pushes; for merge commits, in other words push events, ${{ github.run_id }} is used, so The cancellation is not enforced because it is always a unique group.

This eliminates the problem of consecutive Pushes being cancelled at the time of release.

release


Before submitting the PR make sure the following are checked:

pirj commented 1 year ago

Thank you!