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
28 changes: 10 additions & 18 deletions .github/workflows/dispatch-feature-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,19 @@ on:
- '22'
- '24'
default: '24'
debug:
description: Enable debug logging.
log-context:
description: Log GitHub context.
required: false
type: choice
default: 'false'
options:
- 'true'
- 'false'
type: boolean
default: false

jobs:
log-context:
name: Log GitHub Context
runs-on: ubuntu-latest
if: ${{ inputs.debug == 'true' }}
if: ${{ inputs.log-context }}
steps:
- name: GitHub Context JSON
shell: pwsh
run: |
$json = '${{ toJSON(github) }}'
Write-Host "GitHub Context`n`n$($json)" -BackgroundColor DarkYellow -foregroundColor Black

- name: GitHub Context (Table)
- name: GitHub Context
shell: pwsh
run: |
function Write-Line(
Expand All @@ -61,8 +52,8 @@ jobs:
}
}
function Output-Object($obj, $title = 'Root Level (github)') {
Write-Line "$title" -ForegroundColor Cyan -BackgroundColor DarkGray
Write-Line ("-" * $title.Length) -ForegroundColor Cyan -BackgroundColor DarkGray
Write-Line "$title" -ForegroundColor Black -BackgroundColor DarkYellow
Write-Line ("-" * $title.Length) -ForegroundColor Black -BackgroundColor DarkYellow
$props = $obj.PSObject.Properties
if ($null -eq $obj -or $null -eq $props -or $props.Length -eq 0) {
Write-Warning "No properties found in $title.`n"
Expand Down Expand Up @@ -90,4 +81,5 @@ jobs:
secrets: inherit
with:
node-version: ${{ inputs.node-version }}
build-script: ${{ inputs.debug == 'true' && 'build:debug' || 'build' }}
build: false
pwsh: false
4 changes: 4 additions & 0 deletions .github/workflows/feature-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ jobs:
name: Unit Testing
uses: WJSoftware/cicd/.github/workflows/[email protected]
secrets: inherit
with:
build: false
pwsh: false
node-version: '24'
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
type: string
default: latest
dry-run:
description: Performs a dry run of the publish.
description: Just dry-run the publish process.
required: false
type: boolean
default: false
Expand Down
Loading