ci(docs): fix examples build error when not rebased fully (#8880)

This commit is contained in:
Liam Howatt
2025-09-17 12:45:06 +02:00
committed by GitHub
parent 858f27aa25
commit 65b94cb5f8
2 changed files with 3 additions and 7 deletions
+2 -7
View File
@@ -63,13 +63,8 @@ jobs:
uses: hendrikmuhs/ccache-action@v1
- name: Build examples (with cache)
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
REPO_URL="${{ github.event.pull_request.head.repo.clone_url }}"
COMMIT_REF="${{ github.event.pull_request.head.sha }}"
else
REPO_URL="${{ github.server_url }}/${{ github.repository }}"
COMMIT_REF="${{ github.sha }}"
fi
REPO_URL="${{ github.server_url }}/${{ github.repository }}"
COMMIT_REF="${{ github.sha }}"
./scripts/build_html_examples.sh "$REPO_URL" "$COMMIT_REF"
- name: Build docs
run: docs/build.py html