Skip to content

Commit f50140b

Browse files
committed
ci: debug
1 parent 4e7d5d3 commit f50140b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

cli/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,20 @@ runs:
125125
SLACK_COMMAND: ${{ inputs.command }}
126126
SLACK_TOKEN: ${{ inputs.token }}
127127
run: |
128+
Write-Output "DEBUG: PATH entries:"
129+
$env:PATH -split ';' | Where-Object { $_ -match 'slack' } | ForEach-Object { Write-Output " $_" }
130+
Write-Output "DEBUG: Looking for slack binary..."
131+
Get-Command slack -ErrorAction SilentlyContinue | Format-List
132+
$slackDir = "$env:USERPROFILE\AppData\Local\slack-cli\bin"
133+
Write-Output "DEBUG: Contents of ${slackDir}:"
134+
if (Test-Path $slackDir) { Get-ChildItem $slackDir } else { Write-Output " Directory not found!" }
135+
128136
$args = "$env:SLACK_COMMAND --skip-update"
129137
if ($env:SLACK_TOKEN) {
130138
$args = "$args --token $env:SLACK_TOKEN"
131139
}
132140
141+
Write-Output "DEBUG: Running: slack $args"
133142
$output = slack $args.Split(' ') 2>&1 | Out-String
134143
$exit_code = $LASTEXITCODE
135144

0 commit comments

Comments
 (0)