Skip to content

Commit 39f89b2

Browse files
committed
ok
1 parent 2906ca4 commit 39f89b2

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,3 @@ jobs:
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

.github/workflows/preview-build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: preview-build
22

33
on:
4+
pull_request: ~
45
workflow_call:
56
inputs:
67
strict:
@@ -19,11 +20,6 @@ jobs:
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:

0 commit comments

Comments
 (0)