Skip to content

Commit 19c3d37

Browse files
Added triger by outside event
1 parent 94ceb4b commit 19c3d37

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/download-and-deploy-artifacts.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Download and Deploy Artifacts
22

3-
on: [push]
3+
on:
4+
repository_dispatch:
5+
types: [rebuild-wasm-modules]
6+
push:
7+
branches:
8+
- master
49

510
jobs:
611
build:

download_artifacts.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ def get_latest_successful_run_id(github_token):
2020

2121
successful_emscripten_runs = [
2222
run for run in runs
23-
if run['conclusion'] == 'success' and run['name'] == 'Emscripten build' and run['event'] == 'push'
23+
if run['conclusion'] == 'success'
24+
and run['name'] == 'Emscripten build'
25+
and run['event'] == 'push'
26+
and run['head_branch'] == 'master'
2427
]
2528

2629
if successful_emscripten_runs:

0 commit comments

Comments
 (0)