Skip to content

Commit f1a06a7

Browse files
committed
updating powershell script
1 parent 4b88c2c commit f1a06a7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

UpdateGitCommit.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
Write-Output "DEPLOYMENT_TARGET: '$env:DEPLOYMENT_TARGET'"
1+
param($Commit)
22

3-
Write-Output "SVC_COMMIT_ID: '$env:SVC_COMMIT_ID'"
3+
Write-Output "DEPLOYMENT_TARGET: '$env:DEPLOYMENT_TARGET'"
44

5+
Write-Output "Commit: '$Commit'"
56

67
$webConfig = "$env:DEPLOYMENT_TARGET\Web.config"
78

89
$doc = (Get-Content $webConfig) -as [Xml]
910

1011
$node = $doc.configuration.appSettings.add | where Key -EQ "appharbor.commit_id"
1112

12-
$node.Value = $env:SVC_COMMIT_ID
13+
$node.Value = $Commit
1314

1415
$doc.Save($webConfig)
1516

0 commit comments

Comments
 (0)