Skip to content

Commit

Permalink
[review] Only convert a few pathological SVG files
Browse files Browse the repository at this point in the history
  • Loading branch information
daladim committed Dec 31, 2020
1 parent a6e39f5 commit 127c3e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/compile-mermaid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ jobs:
- name: Convert all svg files to png before uploading for automatic inspection
run: |
npm install convert-svg-to-png
# convert-svg-to-png tries to create files by changing their extension, which could clash with already-existing PNG files
for png_file in "${{env.INPUT_DATA}}"/*.png; do echo "Moving $png_file..."; mv "$png_file" "$png_file.bak"; done
$(npm bin)/convert-svg-to-png ${{env.INPUT_DATA}}/*.svg
# This will overwite any PNG files with the same name that have been created by run-tests.sh
$(npm bin)/convert-svg-to-png ${{env.INPUT_DATA}}/graph-with-br.*.svg
- name: Upload diagrams for manual inspection
uses: actions/upload-artifact@v1
Expand Down

0 comments on commit 127c3e3

Please sign in to comment.