Skip to content

Commit c2867b0

Browse files
committed
Make running a dispatch
1 parent f275afe commit c2867b0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/run-demo.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Test Windows Build
1+
name: Run Windows Build
22

33
on:
44
workflow_run:
55
workflows: ["Build Sentaur Survivors"]
66
types:
77
- completed
8+
workflow_dispatch:
89

910
jobs:
1011
test-windows:
@@ -23,12 +24,12 @@ jobs:
2324

2425
- name: Run Windows Build
2526
run: |
26-
$exePath = Get-ChildItem -Path "./build" -Filter "*.exe" -Recurse | Select-Object -First 1
27+
$exePath = Get-ChildItem -Path "./build" -Filter "SentaurSurvivors-*.exe" -Recurse | Select-Object -First 1
2728
if ($exePath) {
2829
Write-Output "Found executable: $($exePath.FullName)"
2930
Start-Process -FilePath $exePath -ArgumentList "-dsn", "${{ secrets.DSN }}" -Wait -PassThru -NoNewWindow
3031
Write-Output "Build executed successfully"
3132
} else {
32-
Write-Error "No executable found in build artifacts"
33+
Write-Error "No SentaurSurvivors executable found in build artifacts"
3334
exit 1
3435
}

0 commit comments

Comments
 (0)