Skip to content

Commit cc7e89f

Browse files
committed
♻️ refactor(ci): enhance logging for config files in workflow
- add logging for config files used in Hugo build process - improve script readability by storing config files in a variable
1 parent dcb5d08 commit cc7e89f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,9 @@ jobs:
485485
Write-Host "Building site for $environment ";
486486
$env:HUGO_ENV = "$environment";
487487
Write-Host "HUGO_ENV is set to $env:HUGO_ENV"
488-
hugo --source docs --config hugo.yaml,hugo.$environment.yaml --logLevel debug; # --minify
488+
$configFiles = "hugo.yaml,hugo.$environment.yaml"
489+
Write-Host "Using config files: $configFiles"
490+
hugo --source docs --config $configFiles --logLevel debug; # --minify
489491
- uses: actions/upload-artifact@v4
490492
with:
491493
name: AzureDevOpsMigrationTools-Site2

0 commit comments

Comments
 (0)