Skip to content

Commit

Permalink
Render PNG image for previews in links
Browse files Browse the repository at this point in the history
  • Loading branch information
baierjan committed Jan 8, 2024
1 parent ab15e15 commit a5ad581
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
python -m pip install --upgrade pip
pip install -r backlogger/requirements.txt
shell: bash
- run: sudo apt-get install -y kramdown
- run: sudo apt-get install -y kramdown weasyprint ImageMagick
shell: bash
- name: Render Markdown from configured backlog queries
run: python backlogger/backlogger.py ${{ inputs.config }} ${{ inputs.args }}
Expand All @@ -52,3 +52,8 @@ runs:
kramdown ../index.md >>index.html
sed s@GITHUB_REPOSITORY@${{ github.repository }}@g ../backlogger/foot.html >>index.html
shell: bash
- name: Render PNG preview
run: |
cd ${{ inputs.folder }}
kramdown ../index.md | weasyprint - - | magick - -trim preview.png
shell: bash

0 comments on commit a5ad581

Please sign in to comment.