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