Skip to content

Commit

Permalink
check that githubPages should be included
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Dec 4, 2023
1 parent e3fc948 commit 4314ef7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function Get-BranchesFromPolicy($ghEnvironment) {

$settings = $env:Settings | ConvertFrom-Json | ConvertTo-HashTable -recurse

$generateALDocArtifact = ($type -eq 'Publish') -or $settings.alDoc.continuousDeployment
$includeGitHubPages = $getEnvironments.Split(',') | Where-Object { 'github-pages' -like $_ }
$generateALDocArtifact = ($includeGitHubPages) -and (($type -eq 'Publish') -or $settings.alDoc.continuousDeployment)
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "GenerateALDocArtifact=$([int]$generateALDocArtifact)"
Write-Host "GenerateALDocArtifact=$([int]$generateALDocArtifact)"

Expand Down

0 comments on commit 4314ef7

Please sign in to comment.