File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments