Skip to content

Commit

Permalink
Merge pull request #4 from racklet/update-readme
Browse files Browse the repository at this point in the history
Fix the GitHub Action example in the README
  • Loading branch information
luxas authored Jun 10, 2021
2 parents 13b39cf + 6e206d2 commit 6fc3785
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ Example:

## Usage Example

The following example Github Action pushes a new commit with the generated files.
The following example GitHub Action pushes a new commit with the generated files.

```yaml
name: Render draw.io files

on: [push]

jobs:
Expand All @@ -107,7 +109,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Render draw.io files
uses: ghcr.io/racklet/render-drawio-action@v1
uses: docker://ghcr.io/racklet/render-drawio-action:v1
id: render
with: # Showcasing the default values here
formats: 'svg'
Expand All @@ -124,6 +126,7 @@ jobs:
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: 'Automatically render .drawio files'
add: "${{ steps.render.outputs.rendered-files }}"
if: "${{ steps.render.outputs.rendered-files != ''}}"
```
## Docker
Expand Down

0 comments on commit 6fc3785

Please sign in to comment.