Skip to content

Commit c076e4f

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/validate-pr.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ on:
1313
- main
1414

1515
jobs:
16+
debug:
17+
name: debug
18+
runs-on: ubuntu-latest
19+
steps:
20+
- run: |
21+
echo '${{ toJSON(github.event.pull_request) }}
22+
1623
validate-pr:
1724
name: build
18-
if: github.repository_owner == 'elastic' # this action will fail if executed from a fork
25+
if: github.event.pull_request.head.repo.owner.login == 'elastic' # this action will fail if executed from a fork
1926
runs-on: ubuntu-latest
2027
env:
2128
STACK_VERSION: 8.9-SNAPSHOT

0 commit comments

Comments
 (0)