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

Set GitHub Actions concurrency #130

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Set GitHub Actions concurrency #130

merged 1 commit into from
Jun 12, 2024

Conversation

fmrsabino
Copy link
Contributor

@fmrsabino fmrsabino commented Jun 5, 2024

  • Set the workflow concurrency with the following groups:
    • Each branch has its own group (per workflow)
    • Each PR has its own group (per workflow)
    • Each tag has its own group (per workflow)
  • Cancels previous runs in the same group if github.head_ref is available.
  • github.head_ref is only available when the event is of type pull_request or pull_request_target # We use it to set a truthy value i.e., if there is a head_ref then the value is true. The value is false otherwise. See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
  • This means that non-PR runs should not cancel previous runs in the same group (example: tag creation, main branch)

@fmrsabino fmrsabino self-assigned this Jun 5, 2024
@fmrsabino fmrsabino force-pushed the gha-concurrency branch 2 times, most recently from b2e112c to 6126545 Compare June 5, 2024 14:33
- Set the workflow concurrency with the following groups:
  * Each branch has its own group (per workflow)
  * Each PR has its own group (per workflow)
  * Each tag has its own group (per workflow)
- Cancels previous runs in the same group if `github.head_ref` is available.
- github.head_ref is only available when the event is of type pull_request or pull_request_target
  # We use it to set a truthy value i.e., if there is a head_ref then the value is true. The value is false otherwise.
- This means that non-PR runs should not cancel previous runs in the same group (example: tag creation, main branch)
@fmrsabino fmrsabino marked this pull request as ready for review June 5, 2024 14:37
@fmrsabino fmrsabino requested a review from a team as a code owner June 5, 2024 14:37
@coveralls
Copy link

coveralls commented Jun 5, 2024

Pull Request Test Coverage Report for Build 9386123874

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 90.769%

Totals Coverage Status
Change from base Build 9384596001: 0.0%
Covered Lines: 1937
Relevant Lines: 2134

💛 - Coveralls

@fmrsabino fmrsabino merged commit 229a57a into main Jun 12, 2024
5 checks passed
@fmrsabino fmrsabino deleted the gha-concurrency branch June 12, 2024 07:58
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants