mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-10 14:31:04 +00:00
Actions: Run CI only for PRs from forks. (#489)
This commit is contained in:
parent
8e358617e7
commit
cfa05d3fdc
3 changed files with 12 additions and 3 deletions
4
.github/workflows/black.yaml
vendored
4
.github/workflows/black.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
4
.github/workflows/linux.yml
vendored
4
.github/workflows/linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
7
.github/workflows/windows.yaml
vendored
7
.github/workflows/windows.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue