Merge pull request #462 from joerick/github-triggers
Improve Github triggers to prevent multiple runs on origin branches
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push: {}
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
|
workflow_dispatch:
|
||||||
|
# allow manual runs on branches without a PR
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-commit:
|
pre-commit:
|
||||||
@@ -16,9 +20,6 @@ jobs:
|
|||||||
- uses: pre-commit/action@v2.0.0
|
- uses: pre-commit/action@v2.0.0
|
||||||
|
|
||||||
test:
|
test:
|
||||||
# skip branch builds on joerick/cibuildwheel, but always build `master` and pull requests
|
|
||||||
if: github.repository != 'joerick/cibuildwheel' || github.ref == 'refs/heads/master' || github.event_name == 'pull_request'
|
|
||||||
|
|
||||||
name: Test cibuildwheel on ${{ matrix.os }}
|
name: Test cibuildwheel on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
Reference in New Issue
Block a user