-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add version replacement for *.Classic projects.
- Loading branch information
1 parent
9f2ea81
commit 9d66f16
Showing
1 changed file
with
9 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,7 @@ jobs: | |
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
|
||
- if: ${{ github.event_name == 'workflow_dispatch' }} | ||
name: Update CLI Version Numbers | ||
- name: Update CLI Version Numbers | ||
run: | | ||
$content = Get-Content main/Meadow.CLI/Meadow.CLI.csproj | Out-String | ||
$newcontent = $content -replace '<PackageVersion>.*</PackageVersion>', '<PackageVersion>${{ ENV.CLI_RELEASE_VERSION }}</PackageVersion>' | ||
|
@@ -59,6 +58,14 @@ jobs: | |
$newcontent = $content -replace 'CLI_VERSION = \".*\";', 'CLI_VERSION = "${{ ENV.CLI_RELEASE_VERSION }}";' | ||
$newcontent | Set-Content main/Meadow.CLI.Core/Constants.cs | ||
$content = Get-Content main/Meadow.CLI/Meadow.CLI.Classic.csproj | Out-String | ||
$newcontent = $content -replace '<PackageVersion>.*</PackageVersion>', '<PackageVersion>${{ ENV.CLI_RELEASE_VERSION }}</PackageVersion>' | ||
$newcontent | Set-Content main/Meadow.CLI/Meadow.CLI.Classic.csproj | ||
$content = Get-Content main/Meadow.CLI.Core/Meadow.CLI.Core.Classic.csproj | Out-String | ||
$newcontent = $content -replace '<Version>.*</Version>', '<Version>${{ ENV.CLI_RELEASE_VERSION }}</Version>' | ||
$newcontent | Set-Content main/Meadow.CLI.Core/Meadow.CLI.Core.Classic.csproj | ||
- name: Add MSBuild to Path | ||
uses: microsoft/[email protected] | ||
|
||
|