Skip to content

Commit a1b3a98

Browse files
committed
Make work wit run and call
1 parent 1fca853 commit a1b3a98

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/run-demo.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@ name: Run Windows Build
33
on:
44
workflow_call:
55
workflow_dispatch:
6+
workflow_run:
7+
workflows: ["Build Sentaur Survivors"]
8+
types:
9+
- completed
610

711
jobs:
812
test-windows:
913
name: Test Windows Build
1014
runs-on: windows-latest
15+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
1116

1217
steps:
1318
- name: Download Windows Build
1419
uses: actions/download-artifact@v4
1520
with:
1621
name: Build-StandaloneWindows64
1722
path: ./build
18-
run-id: ${{ github.event.workflow_run.id }}
1923
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
run-id: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.id || github.run_id }}
2025

2126
- name: Run Windows Build
2227
run: |

0 commit comments

Comments
 (0)