Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ on:
jobs:
validate-pr:
name: build
if: github.repository_owner == 'elastic' # this action will fail if executed from a fork
runs-on: ubuntu-latest

steps:
- name: Check pull request was opened from branch
if: github.event.pull_request.head.repo.full_name != 'elastic/elasticsearch-specification'
run: echo "Validation is not supported from forks"; exit 1

- uses: actions/checkout@v4
with:
path: ./elasticsearch-specification
Expand Down