File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
GitVersionCore.Tests/BuildAgents
GitVersionCore/BuildAgents Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public void GetCurrentBranchShouldHandlePullRequests()
9797 }
9898
9999 [ TestCase ( "Something" , "1.0.0" ,
100- "::set-env name= GitVersion_Something:: 1.0.0" ) ]
100+ "\" GitVersion_Something= 1.0.0\" >> $GITHUB_ENV " ) ]
101101 public void GetSetParameterMessage ( string key , string value , string expectedResult )
102102 {
103103 // Assert
@@ -141,7 +141,7 @@ public void ShouldWriteIntegration()
141141 "Executing GenerateSetVersionMessage for 'GitHubActions'." ,
142142 "" ,
143143 "Executing GenerateBuildLogOutput for 'GitHubActions'." ,
144- "::set-env name= GitVersion_Major:: 1.0.0"
144+ "\" GitVersion_Major= 1.0.0\" >> $GITHUB_ENV "
145145 } ;
146146
147147 string . Join ( Environment . NewLine , list )
Original file line number Diff line number Diff line change @@ -23,17 +23,17 @@ public override string GenerateSetVersionMessage(VersionVariables variables)
2323
2424 public override string [ ] GenerateSetParameterMessage ( string name , string value )
2525 {
26- // https://help .github.202132.xyz/en/actions/automating-your-workflow-with-github- actions/development-tools -for-github-actions#set-an- environment-variable-set-env
26+ // https://docs .github.202132.xyz/en/free-pro-team@latest/ actions/reference/workflow-commands -for-github-actions#environment-files
2727 // Example
28- // echo "::set-env name=action_state::yellow"
28+ // echo "name=action_state::yellow >> $GITHUB_ENV "
2929
3030 if ( ! string . IsNullOrWhiteSpace ( value ) )
3131 {
3232 var key = $ "GitVersion_{ name } ";
3333
3434 return new [ ]
3535 {
36- $ "::set-env name= { key } :: { value } "
36+ $ "\" { key } = { value } \" >> $GITHUB_ENV "
3737 } ;
3838 }
3939
You can’t perform that action at this time.
0 commit comments