Was getting warning for setting set-env in scripts. So was trying to change
echo "buildEnvironmentUrl=$($hashProperties.buildenvironmenturl)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "requestId=($hashProperties.requestid)" >> $GITHUB_ENV
and in next step, echo is printing null
echo "RequestID : $requestId"
echo "BuildEnvURL: $buildEnvironmentUrl"
In both ways I am not able to set the environment variables, Don’t know what’s missing. Checked I am able to print this with just echo “echo “buildEnvironmentUrl=$($hashProperties.buildenvironmenturl)””