Skip to content

Commit ab0de52

Browse files
committed
auto generate md docs workflow
1 parent 18407c4 commit ab0de52

File tree

1 file changed

+7
-26
lines changed

1 file changed

+7
-26
lines changed

.github/workflows/extra-docs.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,23 @@
11
name: Generate Extra Docs
22

3-
# Controls when the workflow will run
43
on:
5-
# Allows you to run this workflow manually from the Actions tab
6-
workflow_dispatch:
7-
8-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'ca-spring-multimodule/external/apis/docs/docbook/**'
9+
910
jobs:
10-
# This workflow contains a single job called "build"
1111
generate-md:
12-
# The type of runner that the job will run on
1312
runs-on: ubuntu-latest
1413

15-
# Steps represent a sequence of tasks that will be executed as part of the job
1614
steps:
17-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1815
- uses: actions/checkout@v3
1916

20-
# Runs a single command using the runners shell
21-
- name: Run a one-line script
22-
run: echo Hello, world!
23-
24-
# Runs a set of commands using the runners shell
25-
- name: Run a multi-line script
26-
run: |
27-
echo Add other actions to build,
28-
echo test, and deploy your project.
29-
ls -la
30-
mkdir output
31-
32-
# - uses: docker://pandoc/core:2.19
33-
# with:
34-
# args: "--help" # gets appended to pandoc command
35-
3617
- uses: docker://pandoc/core:2.19
3718
with:
3819
args: -f docbook -t markdown_strict ca-spring-multimodule/external/apis/docs/docbook/api-guide.xml -o ca-spring-multimodule/external/apis/docs/md/api-guide.md
3920

4021
- uses: stefanzweifel/git-auto-commit-action@v4
4122
with:
42-
commit_message: Adding AutoGenerated MD Docs
23+
commit_message: Adding Generated Markdown Docs

0 commit comments

Comments
 (0)