feat(core): add output_condition option (#620) [skip ci]

This commit is contained in:
Simon Lecoq
2021-10-26 00:11:06 -04:00
committed by GitHub
parent 9cb1ca667a
commit 7fffb151c5
4 changed files with 61 additions and 1 deletions

View File

@@ -203,6 +203,10 @@ It is possible to configure output behaviour using `output_action` option, which
- `gist`, where output will be stored an already existing gist
- To use this feature, a `gists` scope must be granted to your `token` and `committer_gist` identifier must be provided
It also possible to alter output condition using `output_action` option, which can be set to:
- `always`, to always push changes (provided that git sha changed)
- `skip-if-only-metadata-changed`, to skip changes if only metadata contained in footer changed
#### Examples workflows
```yaml

View File

@@ -94,6 +94,15 @@ inputs:
- pull-request-rebase # Same as "pull-request" and additionaly rebase and merge pull request
- gist # Save output to "committer_gist"
# Output condition
output_condition:
description: Output condition
type: string
default: always
values:
- always # Always push changes
- skip-if-only-metadata-changed # Skip changes if only metadata contained in footer changed
# Optimize SVG image to reduce its filesize
# Some templates may not support this option
optimize: