From 8347c22d1338b681f2b71a82483c92eac8c3701b Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 25 Apr 2023 11:17:51 +0800 Subject: [PATCH] chore: prevent ci from running on fork (#41980) --- .github/workflows/mock-project-build.yml | 1 + .github/workflows/pr-check-ci.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/mock-project-build.yml b/.github/workflows/mock-project-build.yml index 527f5362ba..1c7f334280 100644 --- a/.github/workflows/mock-project-build.yml +++ b/.github/workflows/mock-project-build.yml @@ -13,6 +13,7 @@ concurrency: jobs: pr-check-ci: + if: github.repository == 'ant-design/ant-design' runs-on: ubuntu-latest name: Build Project steps: diff --git a/.github/workflows/pr-check-ci.yml b/.github/workflows/pr-check-ci.yml index b065fa90d9..33d9716ea9 100644 --- a/.github/workflows/pr-check-ci.yml +++ b/.github/workflows/pr-check-ci.yml @@ -10,6 +10,7 @@ permissions: jobs: pr-check-ci: + if: github.repository == 'ant-design/ant-design' permissions: checks: read # for actions-cool/check-pr-ci to get check reference contents: write # for actions-cool/check-pr-ci to merge PRs