|
26 | 26 | - develop
|
27 | 27 | paths:
|
28 | 28 | # List paths for which changes should trigger this workflow:
|
29 |
| - - 'lib/**/README.md' |
| 29 | + - 'lib/**/*.md' |
30 | 30 |
|
31 | 31 | # Workflow jobs:
|
32 | 32 | jobs:
|
33 | 33 |
|
34 |
| - # Define a job for updating equations in README.md files... |
| 34 | + # Define a job for updating equations in Markdown files... |
35 | 35 | update:
|
36 | 36 |
|
37 | 37 | # Define a display name:
|
38 |
| - name: 'Update equations in README.md files' |
| 38 | + name: 'Update equations' |
39 | 39 |
|
40 | 40 | # Define the type of virtual host machine:
|
41 | 41 | runs-on: ubuntu-latest
|
@@ -70,52 +70,51 @@ jobs:
|
70 | 70 | make install-node-modules || make install-node-modules || make install-node-modules
|
71 | 71 | timeout-minutes: 15
|
72 | 72 |
|
73 |
| - # Initialize stdlib development environment: |
74 |
| - - name: 'Initialize stdlib development environment' |
| 73 | + # Initialize development environment: |
| 74 | + - name: 'Initialize development environment' |
75 | 75 | run: |
|
76 |
| - make init || make init || make init |
| 76 | + make init |
77 | 77 | timeout-minutes: 5
|
78 | 78 |
|
79 |
| - # Create list of changed Markdown files: |
80 |
| - - name: 'Create list of changed Markdown files' |
| 79 | + # Configure Git: |
| 80 | + - name: 'Configure Git' |
| 81 | + run: | |
| 82 | + git config --local user.email "[email protected]" |
| 83 | + git config --local user.name "stdlib-bot" |
| 84 | + timeout-minutes: 5 |
| 85 | + |
| 86 | + # Generate list of changed Markdown files: |
| 87 | + - name: 'Generate list of changed Markdown files' |
81 | 88 | run: |
|
82 | 89 | echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep .md | tr '\n' ' ')"
|
83 | 90 | id: changed
|
84 | 91 |
|
85 |
| - # Generate and commit equation SVG files for README.md files: |
86 |
| - - name: 'Generate and commit equation SVG files' |
| 92 | + # Generate SVG equations: |
| 93 | + - name: 'Generate SVG equations' |
87 | 94 | run: |
|
88 | 95 | make markdown-svg-equations-files FILES="${{ steps.changed.outputs.files }}"
|
89 |
| - git config --local user.email "[email protected]" |
90 |
| - git config --local user.name "stdlib-bot" |
91 |
| - git add -A |
92 |
| - git commit -m "Add equation SVG files" |
| 96 | + git add -A && git commit -m "Add SVG equations" |
93 | 97 | timeout-minutes: 15
|
94 | 98 |
|
95 |
| - # Insert equation HTML elements with equation source URLs for README.md files: |
96 |
| - - name: 'Insert equation HTML elements with equation source URLs' |
| 99 | + # Update Markdown equation elements: |
| 100 | + - name: 'Update Markdown equation elements' |
97 | 101 | run: |
|
98 | 102 | make markdown-img-equations-files FILES="${{ steps.changed.outputs.files }}"
|
99 | 103 | make markdown-img-equations-src-urls-files FILES="${{ steps.changed.outputs.files }}"
|
100 |
| - git add -A |
101 |
| - git commit -m "Insert equation HTML elements with equation source URLs" |
| 104 | + git add -A && git commit -m "Update Markdown equation elements" |
102 | 105 | timeout-minutes: 15
|
103 | 106 |
|
104 | 107 | # Create a pull request with the updated equations:
|
105 | 108 | - name: 'Create pull request'
|
106 | 109 | uses: peter-evans/create-pull-request@v3
|
107 | 110 | with:
|
108 |
| - title: 'Insert equations in README.md files' |
| 111 | + title: 'Update Markdown equation elements' |
109 | 112 | body: |
|
110 | 113 | This PR
|
111 | 114 |
|
112 |
| - - inserts equations in README.md files |
113 |
| -
|
114 |
| - * * * |
115 |
| -
|
116 |
| - @stdlib-js/reviewers |
| 115 | + - updates equation elements found in Markdown files |
117 | 116 |
|
118 |
| - commit-message: 'Insert equations in README.md files' |
| 117 | + commit-message: 'Update Markdown equation elements' |
119 | 118 | committer: 'stdlib-bot <[email protected]>'
|
120 | 119 | labels: |
|
121 | 120 | documentation
|
|
0 commit comments