Skip to content

Commit 830fad5

Browse files
committed
1 parent 33a7943 commit 830fad5

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ This file documents all notable changes.
44
Most lines should begin with one of these words:
55
*Add*, *Fix*, *Update*, *Change*, *Deprecate*, *Remove*.
66

7-
<!--
87
## [Unreleased](https://github.com/sharpjs/Subatomix.Build.Versioning.Semantic/compare/release/1.0.1..HEAD)
9-
(none)
10-
-->
8+
- Fix use of [deprecated](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/)
9+
`set-output` workflow command in GitHub Actions.
1110

1211
## [1.0.1](https://github.com/sharpjs/Subatomix.Build.Versioning.Semantic/compare/release/1.0.0..release/1.0.1)
1312
- Fix use of deprecated `buildCrossTargeting` package directory.

src/Subatomix.Build.Versioning.Semantic.targets

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
<Target Name="PrintVersion">
6060
<Message Condition="$(SetAzurePipelinesBuildName)" Importance="high" Text="##vso[build.updatebuildnumber]$(Version)" />
6161
<Message Condition="$(SetTeamCityBuildNumber)" Importance="high" Text="##teamcity[buildNumber '$(Version)']" />
62-
<Message Condition="$(SetGitHubActionsVersion)" Importance="high" Text="::set-output name=version::$(Version)"/>
62+
<WriteLinesToFile
63+
Condition="$(SetGitHubActionsVersion) And '$(GITHUB_OUTPUT)' != ''"
64+
File="$(GITHUB_OUTPUT)"
65+
Lines="version=$(Version)" />
6366
</Target>
6467

6568
<!-- Actual stamp file generation target -->

0 commit comments

Comments
 (0)