Skip to content

Commit 12615ce

Browse files
committed
1 parent f91bfbe commit 12615ce

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
RELEASE_NOTES="${RELEASE_NOTES//'%'/%25}"
102102
RELEASE_NOTES="${RELEASE_NOTES//$'\n'/%0A}"
103103
RELEASE_NOTES="${RELEASE_NOTES//$'\r'/%0D}"
104-
echo "::set-output name=release-notes::$RELEASE_NOTES"
104+
echo "release-notes=$RELEASE_NOTES" >> $GITHUB_OUTPUT
105105
id: tag-message
106106
publish:
107107
runs-on: macos-latest

src/Serilog.Formatting.Log4Net.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,19 @@
6262
<PackageReference Include="MinVer" Version="4.2.0" PrivateAssets="all" />
6363
<PackageReference Include="Serilog" Version="2.0.0" />
6464
</ItemGroup>
65-
65+
6666
<Target Name="ValidateNuGetPackage" AfterTargets="Pack">
6767
<!-- For reference: the file `.config/dotnet-tools.json` was created by running `dotnet new tool-manifest && dotnet tool install dotnet-validate` -->
6868
<Exec Command="dotnet tool restore" />
6969
<Exec Command="dotnet validate package local $([MSBuild]::EnsureTrailingSlash($(PackageOutputPath)))$(PackageId).$(PackageVersion).nupkg" />
7070
</Target>
7171

72-
<Target Name="PrintPackageVersionForGitHubActions" AfterTargets="Pack">
73-
<Message Importance="high" Text="::set-output name=version::$(PackageVersion)" />
74-
<Message Importance="high" Text="::set-output name=nupkg-filename::$(PackageId).$(PackageVersion).nupkg" />
72+
<Target Name="WritePackageVersionForGitHubActions" AfterTargets="Pack">
73+
<ItemGroup>
74+
<GitHubOutput Include="version=$(PackageVersion)" />
75+
<GitHubOutput Include="nupkg-filename=$(PackageId).$(PackageVersion).nupkg" />
76+
</ItemGroup>
77+
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Lines="@(GitHubOutput)" />
7578
</Target>
7679

7780
</Project>

tests/Serilog.Formatting.Log4Net.Tests.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
<Exec WorkingDirectory="$(CoverageReportDirectory)" Command="$(OpenCommand) index.html" Condition="$(OpenCommand) != ''" IgnoreExitCode="true" />
4646
</Target>
4747

48-
<Target Name="PrintCoverageReportPathForGitHubActions" AfterTargets="GenerateCoverageResultAfterTest" Condition="$(ContinuousIntegrationBuild) == 'true'">
49-
<Message Importance="high" Text="::set-output name=coverage-reports::@(CoverletReport, ',')" />
48+
<Target Name="WriteCoverageReportPathForGitHubActions" AfterTargets="GenerateCoverageResultAfterTest" Condition="$(ContinuousIntegrationBuild) == 'true'">
49+
<ItemGroup>
50+
<GitHubOutput Include="coverage-reports=@(CoverletReport, ',')" />
51+
</ItemGroup>
52+
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Lines="@(GitHubOutput)" />
5053
</Target>
5154

5255
<ItemGroup>

0 commit comments

Comments
 (0)