Skip to content

Commit

Permalink
Added triger by outside event
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailGorobets committed Aug 27, 2024
1 parent 94ceb4b commit 19c3d37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/download-and-deploy-artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Download and Deploy Artifacts

on: [push]
on:
repository_dispatch:
types: [rebuild-wasm-modules]
push:
branches:
- master

jobs:
build:
Expand Down
5 changes: 4 additions & 1 deletion download_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def get_latest_successful_run_id(github_token):

successful_emscripten_runs = [
run for run in runs
if run['conclusion'] == 'success' and run['name'] == 'Emscripten build' and run['event'] == 'push'
if run['conclusion'] == 'success'
and run['name'] == 'Emscripten build'
and run['event'] == 'push'
and run['head_branch'] == 'master'
]

if successful_emscripten_runs:
Expand Down

0 comments on commit 19c3d37

Please sign in to comment.