Skip to content

Commit

Permalink
Remove debug and verbose options from workflow and enhance verbose ou…
Browse files Browse the repository at this point in the history
…tput in Set-GitHubOutput function
  • Loading branch information
MariusStorhaug committed Jan 4, 2025
1 parent af25e4c commit e35ff10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/Process-PSModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ jobs:
TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }}
TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }}
TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }}
with:
Debug: true
Verbose: true
SkipTests: All
4 changes: 2 additions & 2 deletions src/functions/public/Commands/Set-GitHubOutput.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@
$outputs['result'] = @{}
}
$outputs['result'][$Name] = $Value
Write-Verbose "Output: [$Name] avaiable as `${{ fromJson(steps.$env:GITHUB_ACTION.outputs.result).$Name }}'"
} else {
$outputs[$Name] = $Value
Write-Verbose "Output: [$Name] avaiable as `${{ steps.$env:GITHUB_ACTION.outputs.$Name }}'"
}

Write-Verbose "Output: [$Name] avaiable as `${{ steps.$env:GITHUB_ACTION.outputs.$Name }}'"

if ($PSCmdlet.ShouldProcess('GitHub Output', 'Set')) {
$outputs | ConvertTo-GitHubOutput | Set-Content -Path $Path
}
Expand Down

0 comments on commit e35ff10

Please sign in to comment.