Repository navigation
Better test deployment cleanup - #1823
Merged
Merged
Conversation
Before, each PR test deployment created its own "environment". These were only deactivated, never deleted, which explains why our github repo has accumulated a ton of environments. This is annoying and actually slows down a couple workflows. With this commit, we only use two environments, where `deployment-test` is used by all test deployments, and `deployment-main` for main. By sharing the env, we have to manually disable & delete the deployment (as the action by bobheadxi cannot do what we want).
Since we used one global concurrency group, the following could happen: - A PR is merged while a deploy step is still running - The merge of the PR triggers "remove deployment", which is queued behind the running deploy step - The push to main triggers the deploy workflow, but GitHub only allows one queued workflow per group, so this replaces the queued "remove deployment", which is never executed Now the concurrency group is per branch/PR.
The bobheadxi action defaults the log URL to the commit's checks page, which does not contain the deploy workflow (it is a `workflow_run` workflow and thus not associated with the commit/PR). Pointing it at the actual run makes the deployment entry on PRs useful for finding logs.
owi92
approved these changes
Oct 29, 2026
owi92
left a comment
Member
There was a problem hiding this comment.
Uuh lgtm, I guess? At least these commits seem reasonable. We'll see when it's merged.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See commits