Skip to content

Commit

Permalink
fixing issue with script
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Jun 1, 2021
1 parent 95e40f4 commit b94440b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Scripts/CreateReviewCodePRs.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is used to create PRs against a number of forked public repos so that csharpier can be run against them
# This is used to create PRs against a number of forked public repos so that csharpier can be run against them
# and the formatting reviewed before releasing csharpier
# Long term this process can probably go away, but for now it is a tolerable way to find edge cases or bugs that are introduced

Expand All @@ -24,9 +24,10 @@ if ($version -eq "") {
exit 1
}

$csharpierProject = "C:\Projects\csharpier"
$csharpierRepos = "C:\Projects\csharpierForkedRepos"

& dotnet build $csharpierRepo\Src\CSharpier\CSharpier.csproj -c Release
& dotnet build $csharpierProject\Src\CSharpier\CSharpier.csproj -c Release

$versionWithQuotes = "`"" + $version + "`"";

Expand All @@ -42,7 +43,7 @@ foreach($folder in Get-ChildItem $csharpierRepos) {
& git branch -d $version
& git checkout -b $version

dotnet $csharpierRepo\Src\CSharpier\bin\Release\net5.0\dotnet-csharpier.dll
dotnet $csharpierProject\Src\CSharpier\bin\Release\net5.0\dotnet-csharpier.dll

& git add -A
& git commit -m $versionWithQuotes
Expand Down

0 comments on commit b94440b

Please sign in to comment.