[BRE-1932] Refactor dotnet extensions start-release.yml #280
[BRE-1932] Refactor dotnet extensions start-release.yml #280brandonbiete wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #280 +/- ##
=======================================
Coverage 68.58% 68.58%
=======================================
Files 51 51
Lines 1184 1184
Branches 104 104
=======================================
Hits 812 812
Misses 325 325
Partials 47 47 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@justindbaur to review -- we need to be prepared for this workflow change. |
Didn't see that Justin was asked to review until after I approved, so I'm dismissing my review so that this PR can't be merged just yet, to give him time.
justindbaur
left a comment
There was a problem hiding this comment.
This workflow doesn't actually do a release, this just starts a code freeze which uses the BW-GHAPP to create release/* branches and make a commit to main for vNext. The release branch action will fail if they can't do it with the Bitwarden bot. If any workflow needs to be updated it is probably pack-and-release.yml. But deploys already defer to the bitwarden/devops repo and requires approval to do the deploy. Right now the approving team has to be Platform or Arch but maybe we could just change the team to BRE.
Thank you for looking into this. I may have over-complicated this migration. Let me check with the team and see if what you've outlined aligns with the new deployment standards. |
After the |
|
@brandonbiete If the concern is the GitHub release creation then honestly we can just delete that, it was largely just done to create a nice commit diff but I can work on something to fill that gap. dotnet-extensions/.github/workflows/pack-and-release.yml Lines 66 to 157 in 53ebbb0 |
Just had a thorough discussion around this with @pixman20 and here's what we plan to do. We are going to pull the logic out from the workflows that handle version bumping and GH releases from this repo to the |
|
For what it's worth, we've been enjoying GitHub Environments for a while now and it helps the team deploy what they need via the approval process built in there. Will that be moving to the repo as well? Would be cool to see Environments scaled out for other releases there too. |
Because the |
Updates start-release and pack-and-release workflows to use trigger-actions pattern instead of performing operations directly. This centralizes release control in the deploy repo. - Modify start-release.yml to trigger deploy repo via trigger-actions - Modify pack-and-release.yml to trigger deploy repo for release + publish - Remove GitHub release creation (moved to deploy repo) - Remove devops dispatch (replaced with deploy repo trigger) - Remove version bump job (now handled by deploy repo)
125a540 to
74882b0
Compare
|



🎟️ Tracking
https://bitwarden.atlassian.net/browse/BRE-1932
📔 Objective
This PR changes how
dotnet-extensionsreleases work. Previously, workflows in this repo would trigger thedevopsrepo to publish releases. Now they trigger the locked down and BRE-owneddeployrepo instead.What happens when you trigger a release via
prereleaseandreleaseworkflows:pack-and-release.yml(this repo) builds the package and uploads artifactstrigger-actions@main(composite action) with task name and datadeployrepo'strigger-actions.ymlreceives the deployment eventdeployrepo'srelease-dotnet-extensions.ymlworkflow runs, which:run_id.nupkgto NuGet via OIDC🚨 Breaking Changes