Skip to content

Commit

Permalink
build: use GITHUB_OUTPUT instead of set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
natemcmaster committed Dec 14, 2024
1 parent 0f40e7a commit e81e4ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<AdditionalFiles Include="PublicAPI.Unshipped.txt" />
</ItemGroup>

<Target Name="UpdateCiSettings" Condition="'$(CI)' == 'true' AND '$(IsPackable)' == 'true'">
<Message Importance="High" Text="::set-output name=package_version::$(PackageVersion)" />
<Target Name="UpdateCiSettings" Condition="'$(CI)' == 'true' AND '$(IsPackable)' == 'true' AND '$(GITHUB_OUTPUT)' != ''">
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Overwrite="false" Lines="package_version=$(PackageVersion)" />
</Target>

</Project>

0 comments on commit e81e4ea

Please sign in to comment.