Skip to content

Commit 6657a1f

Browse files
committed
test
1 parent f61eeef commit 6657a1f

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/preview.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
return deployment.data.id
4545
4646
- uses: actions/checkout@v4
47+
with:
48+
ref: ${{ github.event.pull_request.head.ref }}
4749

4850
- uses: actions/download-artifact@v4
4951
if: github.repository == 'elastic/docs-builder'

docs/quickstart/index.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,26 @@ name: docs
2727
on:
2828
pull_request_target:
2929
types:
30-
- closed
30+
- synchronize
31+
- opened
32+
- reopened
33+
34+
permissions:
35+
contents: read
36+
37+
concurrency:
38+
group: ${{ github.workflow }}-${{ github.ref }}
39+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
3140

3241
jobs:
3342
docs-preview:
34-
uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@main
35-
permissions: # this is needed
43+
uses: elastic/docs-builder/.github/workflows/preview.yml@feature/consumer-preview-action
44+
permissions:
3645
contents: read
3746
id-token: write
3847
deployments: write
48+
with:
49+
strict: false
3950
```
4051

4152
:::
@@ -52,7 +63,7 @@ on:
5263

5364
jobs:
5465
docs-preview:
55-
uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@feature/consumer-preview-action
66+
uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@main
5667
permissions:
5768
contents: read
5869
id-token: write

0 commit comments

Comments
 (0)