diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index 0c3de04765..0b388ddc72 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -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 diff --git a/specification/trigger-build b/specification/trigger-build new file mode 100644 index 0000000000..e69de29bb2