Skip to content

Commit e659603

Browse files
committed
updating script
1 parent 4c6076c commit e659603

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

UpdateGitCommit.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
$webConfig = "$env:DEPLOYMENT_TARGET\Web.config"
1+
Write-Output "DEPLOYMENT_TARGET: '$env:DEPLOYMENT_TARGET'"
2+
3+
Write-Output "SVC_COMMIT_ID: '$env:SVC_COMMIT_ID'"
4+
5+
6+
7+
$webConfig = "$env:DEPLOYMENT_TARGET\Web.config"
28

39
$doc = (Get-Content $webConfig) -as [Xml]
410

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

713
$node.Value = $env:SVC_COMMIT_ID
814

9-
$doc.Save($webConfig)
15+
$doc.Save($webConfig)
16+
17+
Write-Output "Completed App setting update"

0 commit comments

Comments
 (0)