Skip to content

Commit

Permalink
Fix incorrect "fork check" condition
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Jun 27, 2023
1 parent 86b3c63 commit cfcddc2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Validate APIs
on:
pull_request:
paths:
- '**'
- 'specification/**'
- '!specification/_types/**'
- '!specification/_spec_utils/**'
Expand All @@ -13,9 +14,16 @@ on:
- main

jobs:
# debug:
# name: debug
# runs-on: ubuntu-latest
# steps:
# - run: |
# echo '${{ toJSON(github.event.pull_request) }}

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
Expand Down

0 comments on commit cfcddc2

Please sign in to comment.