File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 7
7
merge_group :
8
8
types : [checks_requested]
9
9
pull_request :
10
+ workflow_dispatch : # Just for testing purposes
10
11
11
12
concurrency :
12
13
group : ${{ github.workflow }}-${{ github.ref_name }}
78
79
run : |
79
80
New-Service -Name "otelcorecol" -StartupType "Manual" -BinaryPathName "${PWD}\bin\otelcorecol_windows_amd64 --config ${PWD}\examples\local\otel-config.yaml"
80
81
eventcreate.exe /t information /id 1 /l application /d "Creating event provider for 'otelcorecol'" /so otelcorecol
82
+ if ($LastExitCode -eq 0) { exit 0 }
83
+ Write-Host "Hit issue #12422 collecting info for investigation"
84
+ Get-Service -Name EventLog
85
+ $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()); `
86
+ Write-Host "Running as admin: $($currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))"
87
+ Start-Sleep -Seconds 10
88
+ eventcreate.exe /t information /id 1 /l application /d "Creating event provider for 'otelcorecol'" /so otelcorecol
81
89
82
90
- name : Test otelcorecol service
83
91
working-directory : ${{ github.workspace }}/otelcol
You can’t perform that action at this time.
0 commit comments