|
1 | 1 | name: Generate Extra Docs
|
2 | 2 |
|
3 |
| -# Controls when the workflow will run |
4 | 3 | 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 | + |
9 | 10 | jobs:
|
10 |
| - # This workflow contains a single job called "build" |
11 | 11 | generate-md:
|
12 |
| - # The type of runner that the job will run on |
13 | 12 | runs-on: ubuntu-latest
|
14 | 13 |
|
15 |
| - # Steps represent a sequence of tasks that will be executed as part of the job |
16 | 14 | steps:
|
17 |
| - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
18 | 15 | - uses: actions/checkout@v3
|
19 | 16 |
|
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 |
| - |
36 | 17 | - uses: docker://pandoc/core:2.19
|
37 | 18 | with:
|
38 | 19 | 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
|
39 | 20 |
|
40 | 21 | - uses: stefanzweifel/git-auto-commit-action@v4
|
41 | 22 | with:
|
42 |
| - commit_message: Adding AutoGenerated MD Docs |
| 23 | + commit_message: Adding Generated Markdown Docs |
0 commit comments