Skip to content

Commit b70a4fa

Browse files
authored
Create plugin_docs_test.yaml reusable workflow
1 parent cfe6562 commit b70a4fa

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test plugin docs
2+
on:
3+
workflow_call:
4+
jobs:
5+
Explore-GitHub-Actions:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- run: ls -lha .
9+
- name: Check out plugin code
10+
uses: actions/checkout@v4
11+
with:
12+
path: plugin
13+
- name: Checkout docs repo
14+
uses: actions/checkout@v4
15+
with:
16+
repository: elastic/docs
17+
path: docs
18+
- name: Checkout logstash repo
19+
uses: actions/checkout@v4
20+
with:
21+
repository: elastic/logstash
22+
path: logstash
23+
- name: Checkout logstash-docs repo
24+
uses: actions/checkout@v4
25+
with:
26+
repository: elastic/logstash-docs
27+
path: logstash-docs
28+
- name: copy plugin doc entry to logstash-docs
29+
run: |
30+
cp plugin/docs/index.asciidoc "logstash-docs/docs/plugins/inputs/$(awk -F': ' '/:plugin:/{print $2}' plugin/docs/index.asciidoc).asciidoc"
31+
- name: Build docs
32+
run: ./docs/build_docs --respect_edit_url_overrides --doc logstash/docs/index.asciidoc --resource=logstash-docs/docs/ --chunk 1

0 commit comments

Comments
 (0)