Skip to content

Commit

Permalink
ci: avoid duplicate builds on push, pull_request
Browse files Browse the repository at this point in the history
Only build push's to `main` to avoid duplicate builds.
  • Loading branch information
thewtex committed Jun 19, 2024
1 parent 6b5fb47 commit fbed11e
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/cxx-python.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: C++,Native Python

on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

env:
ITKMeshToPolyData-git-tag: "v0.11.0"
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Browser Tests

on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

defaults:
run:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Examples

on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-node-example:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/javascript-typescript.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Node.js Tests

on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

defaults:
run:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/python-wasm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Python Wasm

on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

env:
pyodide-version: 0.24.1
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/toolchains.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Toolchains

on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

env:
OCI_EXE: docker
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/wasi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: WASI

on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

defaults:
run:
Expand Down

0 comments on commit fbed11e

Please sign in to comment.