Actions: Run CI only for PRs from forks. (#489)

This commit is contained in:
Inada Naoki 2021-11-16 17:47:16 +09:00 committed by GitHub
parent 8e358617e7
commit cfa05d3fdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View file

@ -4,6 +4,10 @@ on: ["push", "pull_request"]
jobs:
black:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Setup Python

View file

@ -6,6 +6,10 @@ on:
jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout

View file

@ -1,14 +1,15 @@
name: Build and test windows wheels
on:
push:
branches:
- master
- test
pull_request:
create:
jobs:
build:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: windows-latest
steps:
- name: Checkout