File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments