diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-11-16 17:47:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 17:47:16 +0900 |
commit | cfa05d3fdc6290b4847e4781a06ac0668ea9dc18 (patch) | |
tree | 0180920e790607c5777c60d29044c5948d86744a | |
parent | 8e358617e77d63a391f0c0f91b3e552214f2a49a (diff) | |
download | msgpack-python-cfa05d3fdc6290b4847e4781a06ac0668ea9dc18.tar.gz |
Actions: Run CI only for PRs from forks. (#489)
-rw-r--r-- | .github/workflows/black.yaml | 4 | ||||
-rw-r--r-- | .github/workflows/linux.yml | 4 | ||||
-rw-r--r-- | .github/workflows/windows.yaml | 7 |
3 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml index eda8d07..c545953 100644 --- a/.github/workflows/black.yaml +++ b/.github/workflows/black.yaml @@ -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 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 811bc13..95c672b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index debe074..0ce50f5 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -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 |