File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 4242 path : .artifacts/publish/docs-builder/release/docs-builder
4343 if-no-files-found : error
4444 retention-days : 1
45-
46- preview :
47- needs : build
48- uses : ./.github/workflows/preview-build.yml
Original file line number Diff line number Diff line change 11name : preview-build
22
33on :
4+ pull_request : ~
45 workflow_call :
56 inputs :
67 strict :
1920 steps :
2021 - name : Checkout
2122 uses : actions/checkout@v4
22- - name : Download docs-builder binary
23- uses : actions/download-artifact@v4
24- if : github.repository == 'elastic/docs-builder'
25- with :
26- name : docs-builder-binary
2723
2824 # we run our artifact directly please use the prebuild
2925 # elastic/docs-builder@main GitHub Action for all other repositories!
@@ -32,10 +28,10 @@ jobs:
3228 env :
3329 PR_NUMBER : ${{ github.event.pull_request.number }}
3430 run : |
35- chmod +x ./docs-builder
36- ./docs-builder --strict --path-prefix "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}"
31+ dotnet run --project src/docs-builder -- --strict --path-prefix "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}"
3732
3833 - name : Build documentation
34+ if : github.repository != 'elastic/docs-builder'
3935 uses : elastic/docs-builder@main
4036 continue-on-error : true
4137 with :
You can’t perform that action at this time.
0 commit comments