Skip to content

Convert draw.io documents to jpeg, png, svg, pdf using drawio-batch.

License

Notifications You must be signed in to change notification settings

rh01/actions-drawio-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions-drawio CI Tests

Convert draw.io documents to jpeg|png|svg|pdf using drawio-batch.

This action makes use of the heavily optimized Docker image (alpine-drawio-batch).


Usage

You can run this action by using the with: block

  steps:
  - uses: actions/checkout@v2
  - name: Convert digramm to png
    uses: Burnett01/actions-drawio@1.0
    with:
      src: diagramm.drawio
      dest: diagramm.png

Inputs

  • quality The quality for png & jpeg (eg. 100)

  • scale The scale (eg. 1.0)

  • src The source file (eg. input.drawio)

  • dest The destination file (eg. output.jpeg)


Combinations

You can combine this actions with other ones, such as upload-artifact:

steps:
    - uses: actions/checkout@v2
    - name: Convert test file to png image
      uses: Burnett01/actions-drawio@1.0
      with:
        src: test.drawio
        dest: test.png
    - name: Upload image as artifact
      uses: actions/upload-artifact@v1
      with:
        name: png
        path: test.png

Demo/Tests

Check the Actions tab for a live demo:

Live Demo

About

Convert draw.io documents to jpeg, png, svg, pdf using drawio-batch.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%