File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1- #! /bin/sh
2-
3- set -e # fail on first error
4-
5- SCRIPT_DIR=$( dirname " $0 " )
6- dotnet run -c Release --project $SCRIPT_DIR /CI/NGO.Cookbook.csproj " $@ "
1+ #! /bin/sh set -e # fail on first error SCRIPT_DIR=$(dirname "$0") dotnet run -c Release --project $SCRIPT_DIR/CI/NGO.Cookbook.csproj "$@"
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ def createPrAfterRelease(config: ReleaseConfig):
3333
3434 try :
3535 if not config .github_manager .is_branch_present (config .default_repo_branch ):
36- print (f"Branch '{ config .default_repo_branch } ' does not exist. Exiting." )
37- sys .exit (1 )
36+ raise Exception (f"Branch '{ config .default_repo_branch } ' does not exist. Exiting." )
3837
3938 repo = get_local_repo ()
4039 repo .git .fetch ('--prune' , '--prune-tags' )
@@ -53,7 +52,6 @@ def createPrAfterRelease(config: ReleaseConfig):
5352 repo .git .add (config .changelog_path )
5453 repo .git .add (config .manifest_path )
5554 repo .git .add (config .validation_exceptions_path )
56- repo .git .add ("Tools/regenerate-ci.sh" )
5755
5856 author = Actor (config .commiter_name , config .commiter_email )
5957 committer = Actor (config .commiter_name , config .commiter_email )
You can’t perform that action at this time.
0 commit comments