Add retries and retries_delay options

This commit is contained in:
lowlighter
2021-03-07 10:29:37 +01:00
parent dafcd68bd5
commit 61e9bfc505
3 changed files with 48 additions and 1 deletions

View File

@@ -102,6 +102,21 @@ Specify a single value to apply it to both height and with, and two values to us
config_padding: 6%, 10% # 6% width padding, 10% height padding
```
### ♻️ Retrying automatically failed rendering
Rendering is subject to external factors and can fail from time to time.
It is possible to mitigate this issue using `retries` and `retries_delay` options to automatically retry later metrics rendering and avoid workflow fails.
#### Examples workflows
```yaml
- uses: lowlighter/metrics@latest
with:
# ... other options
retries: 3
retries_delay: 300
```
### 💱 Convert output to PNG/JPEG
It is possible to convert output from SVG to PNG or JPEG images by using `config_output` option.