Demote WARN to INFO if behaviour is expected for connect. #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test plugin docs | |
on: | |
workflow_call: | |
pull_request: | |
paths: | |
- 'docs/**/*' | |
jobs: | |
build_docs: | |
if: github.repository != 'logstash-plugins/.ci' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out plugin code | |
uses: actions/checkout@v4 | |
with: | |
path: plugin | |
- name: Checkout docs repo | |
uses: actions/checkout@v4 | |
with: | |
repository: elastic/docs | |
path: docs | |
- name: Checkout logstash repo | |
uses: actions/checkout@v4 | |
with: | |
repository: elastic/logstash | |
ref: 8.x # test on 8.x until we find how to test with the new docs system | |
path: logstash | |
- name: Checkout logstash-docs repo | |
uses: actions/checkout@v4 | |
with: | |
repository: elastic/logstash-docs | |
path: logstash-docs | |
- name: copy plugin doc entry to logstash-docs | |
run: | | |
cp plugin/docs/index.asciidoc "logstash-docs/docs/plugins/$(awk -F': ' '/:type:/{t=$2}/:plugin:/{p=$2} END{print t "s/" p}' plugin/docs/index.asciidoc).asciidoc" | |
- name: Build docs | |
run: ./docs/build_docs --respect_edit_url_overrides --doc logstash/docs/index.asciidoc --resource=logstash-docs/docs/ --chunk 1 |