Skip to content

Commit

Permalink
Updated GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Jul 12, 2024
1 parent 217a384 commit 221d9f6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/uitest/uitest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,12 @@ function Start-Sample {
Reset-IISServerManager -Confirm:$false
Start-IISCommitDelay

$appPool = Get-IISConfigSection -SectionPath "system.applicationHost/applicationPools" | `
$site = Get-IISSite -Name "$sampleName"
$envVars = Get-IISConfigSection -SectionPath "system.applicationHost/applicationPools" | `
Get-IISConfigCollection | `
Get-IISConfigCollectionElement -ConfigAttribute @{"name"=$sampleName}
write-output "appPool"
write-output $appPool

$envVars = $appPool | `
Get-IISConfigCollectionElement -ConfigAttribute @{"name"=$site.Applications["/"].ApplicationPoolName} | `
Get-IISConfigElement -ChildElementName "environmentVariables" | `
Get-IISConfigCollection
write-output "environmentVariables"
write-output $envVars

New-IISConfigCollectionElement -ConfigCollection $envVars `
-ConfigAttribute @{name="GITHUB_TOKEN";value=$env:GITHUB_TOKEN}
Expand Down

0 comments on commit 221d9f6

Please sign in to comment.