Skip to content

Commit d36f598

Browse files
committed
Fix incorrect "fork check" condition
1 parent 86b3c63 commit d36f598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/validate-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
validate-pr:
1717
name: build
18-
if: github.repository_owner == 'elastic' # this action will fail if executed from a fork
18+
if: github.event.pull_request.head.repo.owner.login == 'elastic' # this action will fail if executed from a fork
1919
runs-on: ubuntu-latest
2020
env:
2121
STACK_VERSION: 8.9-SNAPSHOT

0 commit comments

Comments
 (0)