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

chore(ci): cancel in-flight approvals when a PR is updated #337

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

ctreatma
Copy link
Contributor

Every time a PR is updated it triggers a new run of the end-to-end tests workflow, which includes making a new deployment request for PRs from forks. This updates the end-to-end tests workflow so that, when a PR is updated, any in-flight approval jobs are canceled, and only the newest approval request is left running.

In addition, this sets concurrency on the end-to-end test job so that it has to run one-at-a-time to avoid flooding the API with requests if multiple end-to-end test runs are approved.

@ctreatma ctreatma merged commit eaf83d5 into main Aug 24, 2023
5 checks passed
@ctreatma ctreatma deleted the e2e-test-concurrency branch August 24, 2023 18:25
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.

2 participants