Skip to content

Commit c89b227

Browse files
committed
Touch-up workflow
1 parent 5179476 commit c89b227

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

.github/workflows/markdown_equations.yml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ on:
2626
- develop
2727
paths:
2828
# List paths for which changes should trigger this workflow:
29-
- 'lib/**/README.md'
29+
- 'lib/**/*.md'
3030

3131
# Workflow jobs:
3232
jobs:
3333

34-
# Define a job for updating equations in README.md files...
34+
# Define a job for updating equations in Markdown files...
3535
update:
3636

3737
# Define a display name:
38-
name: 'Update equations in README.md files'
38+
name: 'Update equations'
3939

4040
# Define the type of virtual host machine:
4141
runs-on: ubuntu-latest
@@ -70,52 +70,51 @@ jobs:
7070
make install-node-modules || make install-node-modules || make install-node-modules
7171
timeout-minutes: 15
7272

73-
# Initialize stdlib development environment:
74-
- name: 'Initialize stdlib development environment'
73+
# Initialize development environment:
74+
- name: 'Initialize development environment'
7575
run: |
76-
make init || make init || make init
76+
make init
7777
timeout-minutes: 5
7878

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'
8188
run: |
8289
echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep .md | tr '\n' ' ')"
8390
id: changed
8491

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'
8794
run: |
8895
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"
9397
timeout-minutes: 15
9498

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'
97101
run: |
98102
make markdown-img-equations-files FILES="${{ steps.changed.outputs.files }}"
99103
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"
102105
timeout-minutes: 15
103106

104107
# Create a pull request with the updated equations:
105108
- name: 'Create pull request'
106109
uses: peter-evans/create-pull-request@v3
107110
with:
108-
title: 'Insert equations in README.md files'
111+
title: 'Update Markdown equation elements'
109112
body: |
110113
This PR
111114
112-
- inserts equations in README.md files
113-
114-
* * *
115-
116-
@stdlib-js/reviewers
115+
- updates equation elements found in Markdown files
117116
118-
commit-message: 'Insert equations in README.md files'
117+
commit-message: 'Update Markdown equation elements'
119118
committer: 'stdlib-bot <[email protected]>'
120119
labels: |
121120
documentation

0 commit comments

Comments
 (0)