From d29cfacb14e6a2fad2e591da96296f399a02f2a9 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 23 Jul 2023 00:05:31 +0900 Subject: [PATCH 1/2] chore: skip website tests on PRs from forks --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47da35c1741f..156ba55f6e4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -225,8 +225,8 @@ jobs: TYPESCRIPT_ESLINT_EXPERIMENTAL_TSSERVER: true website_tests: - # The NETLIFY_TOKEN secret will not be available on forks - if: github.repository_owner == 'typescript-eslint' + # The NETLIFY_TOKEN secret will not be available on PRs from forks + if: github.event.pull_request.head.repo.full_name == github.repository permissions: contents: read # to fetch code (actions/checkout) From a0fadde34bddb3b50c0d5cb35e9e19a56385273c Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 23 Jul 2023 00:41:01 +0900 Subject: [PATCH 2/2] chore: run website tests after merged to main branch --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 156ba55f6e4b..83b234e284e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -226,7 +226,7 @@ jobs: website_tests: # The NETLIFY_TOKEN secret will not be available on PRs from forks - if: github.event.pull_request.head.repo.full_name == github.repository + if: (github.event_name == 'push' && github.ref_name == 'main') || (github.event.pull_request.head.repo.full_name == github.repository) permissions: contents: read # to fetch code (actions/checkout)