From 53e2c1f7cd28749b79fb5d4ccee5b6c55becc1d1 Mon Sep 17 00:00:00 2001 From: hellodword <46193371+hellodword@users.noreply.github.com> Date: Mon, 12 Sep 2022 22:36:23 +0800 Subject: [PATCH] disable notify in forked repository --- .github/workflows/build.yml | 3 ++- .github/workflows/lint.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61ed05e2..7e153d0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,7 +112,8 @@ # Use always() to signal to the runner that this job must run even if the # previous ones failed. 'if': - ${{ always() && + ${{ github.repository_owner == 'AdguardTeam' && + always() && ( github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1842c2dc..56183571 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -43,7 +43,8 @@ # Use always() to signal to the runner that this job must run even if the # previous ones failed. 'if': - ${{ always() && + ${{ github.repository_owner == 'AdguardTeam' && + always() && ( github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository