Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/TestWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ jobs:
Prerelease: ${{ inputs.Prerelease }}
Script: |
LogGroup 'Get-GitHubUser' {
Get-GitHubUser | Format-Table -AutoSize | Out-String
Get-GitHubUser -Debug | Format-Table -AutoSize | Out-String
}

LogGroup 'Get-GitHubOrganization' {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ To get started with your own GitHub PowerShell based action, [create a new repos
| `Token` | Log in using an Installation Access Token (IAT). | false | `${{ github.token }}` |
| `ClientID` | Log in using a GitHub App, with the App's Client ID and Private Key. | false | |
| `PrivateKey` | Log in using a GitHub App, with the App's Client ID and Private Key. | false | |
| `Debug` | Enable debug output. | false | `'false'` |
| `Verbose` | Enable verbose output. | false | `'false'` |
| `Debug` | Enable debug output for the whole action. | false | `'false'` |
| `Verbose` | Enable verbose output for the whole action. | false | `'false'` |
| `Version` | Specifies the exact version of the GitHub module to install. | false | |
| `Prerelease` | Allow prerelease versions if available. | false | `'false'` |
| `ErrorView` | Configure the PowerShell `$ErrorView` variable. You can use full names ('NormalView', 'CategoryView', 'ConciseView', 'DetailedView'). It matches on partials. | false | `'NormalView'` |
Expand Down
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ inputs:
description: Log in using a GitHub App, using the App's Client ID and Private Key.
required: false
Debug:
description: Enable debug output.
description: Enable debug output for the whole action.
required: false
default: 'false'
Verbose:
description: Enable verbose output.
description: Enable verbose output for the whole action.
required: false
default: 'false'
Version:
Expand Down Expand Up @@ -92,6 +92,8 @@ runs:
run: |
# ${{ inputs.Name }}
$ErrorView = $env:PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView
$DebugPreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue'
$VerbosePreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue'
try {
${{ github.action_path }}/scripts/init.ps1
${{ github.action_path }}/scripts/info.ps1
Expand Down
2 changes: 0 additions & 2 deletions scripts/info.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@ process {

end {
Write-Debug "[$scriptName] - End"
$DebugPreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue'
$VerbosePreference = $env:PSMODULE_GITHUB_SCRIPT_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue'
}
2 changes: 0 additions & 2 deletions scripts/outputs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
[CmdletBinding()]
param()

$DebugPreference = 'SilentlyContinue'
$VerbosePreference = 'SilentlyContinue'
$scriptName = $MyInvocation.MyCommand.Name
Write-Debug "[$scriptName] - Start"

Expand Down
Loading