-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Publisher Workflow to successfully create new branches (#3117)
The publisher tool was unable to create new branches because it attempted to determine if the current commit was on main. However, this didn't work! Since main was never checked out (ever) in the repo, there was no ref to look for. This fixes the issue in (perhaps not the best) way by simply checking out main first. The logic was also refactored to have dry run and non-dry run behave in a way that is closer to identical. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
- Loading branch information
Showing
1 changed file
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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