chore: automate creation of release candidate branches #1842
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.
This change builds on #1832 and #1827.
This change sets up a GitHub Action that will be used to create release candidate branches for agentic chat.
Once we have a commit on the main branch that we want to use as a release candidate (aka "preprod" internally) build, the new GitHub Action will be run, which creates a release candidate branch, and increments the agentic chat version. After the automation pushes the new commit into the new release candidate branch, the action from #1827 gets triggered, which produces the build. Then the action from #1832 gets triggered, which creates (or updates) a GitHub release.
Example, if agentic chat was versioned "1.2.3", and we initiate a release candidate using a minor version increment:
By using a separate staging branch for the release candidates, the main branch will no longer need to be locked while a release is in process.
To support this change:
release/agentic/*branchesrelease/agentic/*branchesRELEASE_CANDIDATE_BRANCH_CREATION_PATwas added to the repo, which is used by this Action, in order to ensure that our operations are able to trigger other GitHub actions. It uses theaws-toolkit-automationaccount to push the commit to the repo.We won't use this automation until the internal pipelines have been set up to consume artifacts from the GitHub releases that these changes will produce.
Here's a quick sample of how the new Action will be run:
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.