Skip to content

Commit cfcddc2

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

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/validate-pr.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Validate APIs
33
on:
44
pull_request:
55
paths:
6+
- '**'
67
- 'specification/**'
78
- '!specification/_types/**'
89
- '!specification/_spec_utils/**'
@@ -13,9 +14,16 @@ on:
1314
- main
1415

1516
jobs:
17+
# debug:
18+
# name: debug
19+
# runs-on: ubuntu-latest
20+
# steps:
21+
# - run: |
22+
# echo '${{ toJSON(github.event.pull_request) }}
23+
1624
validate-pr:
1725
name: build
18-
if: github.repository_owner == 'elastic' # this action will fail if executed from a fork
26+
if: github.event.pull_request.head.repo.owner.login == 'elastic' # this action will fail if executed from a fork
1927
runs-on: ubuntu-latest
2028
env:
2129
STACK_VERSION: 8.9-SNAPSHOT

0 commit comments

Comments
 (0)