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

Align GitHub workflow/job run conditions #394

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

justsmth
Copy link
Contributor

Description of changes:

  • Align our GitHub workflows/jobs so that they all run on the same conditions.
  • Avoid costly CI runs when on non-"aws" repos.
    • The "aws-ls-rs coverage" job will still run on any repo that has GitHub actions enabled.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@justsmth justsmth requested a review from a team as a code owner April 15, 2024 18:59
@justsmth justsmth requested a review from skmcgrail April 15, 2024 18:59
.github/workflows/integration.yml Show resolved Hide resolved
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}

Choose a reason for hiding this comment

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

is pull_request populated on push-type events? i don't see any such fields in the docs...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe for pushes to repository branches the value of the group here would effectively be only the workflow name. This means that pushing (or merging) multiple commits in quick succession would cause CI workflows to be cancelled. A better choice might be github.ref_name: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

@justsmth justsmth merged commit ad48d14 into aws:main Apr 16, 2024
163 of 166 checks passed
@justsmth justsmth deleted the github-workflow-conditions branch April 16, 2024 12:44
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.

3 participants