Skip to content

Commit e8663e0

Browse files
committed
Add step to save list of changed Markdown files
1 parent af24473 commit e8663e0

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/markdown_equations.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,16 @@ jobs:
7676
make init || make init || make init
7777
timeout-minutes: 5
7878

79+
# Create list of changed Markdown files:
80+
- name: 'Create list of changed Markdown files'
81+
run: |
82+
echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep .md | tr '\n' ' ')"
83+
id: changed
84+
7985
# Generate and commit equation SVG files for README.md files:
8086
- name: 'Generate and commit equation SVG files'
8187
run: |
82-
files=$( git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep .md | tr '\n' ' ' )
83-
echo $files
84-
make markdown-svg-equations-files FILES=$files
88+
make markdown-svg-equations-files FILES="${{ steps.changed.outputs.files }}"
8589
git config --local user.email "noreply@stdlib.io"
8690
git config --local user.name "stdlib-bot"
8791
git add -A
@@ -91,8 +95,8 @@ jobs:
9195
# Insert equation HTML elements with equation source URLs for README.md files:
9296
- name: 'Insert equation HTML elements with equation source URLs'
9397
run: |
94-
make markdown-img-equations-files FILES=$files
95-
make markdown-img-equations-src-urls-files FILES=$files
98+
make markdown-img-equations-files FILES="${{ steps.changed.outputs.files }}"
99+
make markdown-img-equations-src-urls-files FILES="${{ steps.changed.outputs.files }}"
96100
git add -A
97101
git commit -m "Insert equation HTML elements with equation source URLs"
98102
timeout-minutes: 15

0 commit comments

Comments
 (0)