From d36f598ef4ed4e15a8e5484818d256955e7c0ee5 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Tue, 27 Jun 2023 21:13:30 +0200 Subject: [PATCH] Fix incorrect "fork check" condition --- .github/workflows/validate-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index 638c22b2d4..0809e93116 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -15,7 +15,7 @@ on: jobs: validate-pr: name: build - if: github.repository_owner == 'elastic' # this action will fail if executed from a fork + if: github.event.pull_request.head.repo.owner.login == 'elastic' # this action will fail if executed from a fork runs-on: ubuntu-latest env: STACK_VERSION: 8.9-SNAPSHOT