Skip to content

Commit 18dedb4

Browse files
authored
Merge pull request #1818 from elastic/feature/adoc-to-md-workflow
VPR: Add workflow to convert asciidoc to md
2 parents 1cb9f53 + 10e605b commit 18dedb4

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
# This workflow converts the versioned plugin docs from asciidoc to markdown
3+
# every time a commit is pushed to the versioned_plugin_docs branch.
4+
name: Convert versions plugin docs to markdown
5+
6+
on:
7+
workflow_dispatch: ~
8+
push:
9+
branches:
10+
- versioned_plugin_docs
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: versioned_plugin_docs
22+
path: logstash-docs
23+
persist-credentials: false
24+
- uses: actions/checkout@v4
25+
with:
26+
repository: elastic/docs
27+
path: docs
28+
persist-credentials: false
29+
- uses: actions/checkout@v4
30+
with:
31+
repository: elastic/adoc-to-md
32+
path: adoc-to-md
33+
token: ${{ secrets.ADOC_TO_MD_PAT }}
34+
persist-credentials: false
35+
- uses: actions/checkout@v4
36+
with:
37+
repository: elastic/asciidocalypse
38+
ref: main-archive
39+
path: asciidocalypse
40+
token: ${{ secrets.ADOC_TO_MD_PAT }}
41+
persist-credentials: false
42+
43+
- name: Create docker image
44+
working-directory: ./adoc-to-md/src/docker
45+
run: ./create_image.sh
46+
47+
- name: Migrate
48+
working-directory: ./asciidocalypse/migration-zone/logstash-versioned-plugins/scripts
49+
run: ./migrate.sh
50+
51+
- uses: actions/upload-artifact@v4
52+
with:
53+
name: migrated-docs
54+
if-no-files-found: error
55+
retention-days: 1
56+
path: asciidocalypse/migration-zone/logstash-versioned-plugins

0 commit comments

Comments
 (0)