We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b88c2c commit f1a06a7Copy full SHA for f1a06a7
1 file changed
UpdateGitCommit.ps1
@@ -1,15 +1,16 @@
1
-Write-Output "DEPLOYMENT_TARGET: '$env:DEPLOYMENT_TARGET'"
+param($Commit)
2
3
-Write-Output "SVC_COMMIT_ID: '$env:SVC_COMMIT_ID'"
+Write-Output "DEPLOYMENT_TARGET: '$env:DEPLOYMENT_TARGET'"
4
5
+Write-Output "Commit: '$Commit'"
6
7
$webConfig = "$env:DEPLOYMENT_TARGET\Web.config"
8
9
$doc = (Get-Content $webConfig) -as [Xml]
10
11
$node = $doc.configuration.appSettings.add | where Key -EQ "appharbor.commit_id"
12
-$node.Value = $env:SVC_COMMIT_ID
13
+$node.Value = $Commit
14
15
$doc.Save($webConfig)
16
0 commit comments