I have a variable defined in Azure devops variable group like below:
apple-prod-branch refs/heads/release-823T0709
The above variable works when called in azure pipeline powershell command when called like:
"Write-Host $(apple-prod-branch)"
Output is:
refs/heads/release-823T0709
In the above variable name apple-prod-branch, apple is the repo name. How can I use the repo name and use a variable like this ?
$repo_name = "apple"
"Write-Host $($(repo-name)-prod-branch)"
End result needs to be
refs/heads/release-823T0709
