feat(core): rename skip-if-only-metadata-changed to data-changed

This commit is contained in:
lowlighter
2021-10-28 00:37:32 -04:00
parent 3805d27833
commit 7ccdf9f03c
3 changed files with 4 additions and 4 deletions

View File

@@ -326,7 +326,7 @@ async function wait(seconds) {
info.break()
info.section("Saving")
info("Output condition", _output_condition)
if ((_output_condition === "skip-if-only-metadata-changed")&&((committer.commit) || (committer.pr))) {
if ((_output_condition === "data-changed")&&((committer.commit) || (committer.pr))) {
const {svg} = await import("../metrics/utils.mjs")
let data = ""
try {

View File

@@ -205,7 +205,7 @@ It is possible to configure output behaviour using `output_action` option, which
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
- `data-changed`, to skip changes if no actual data changed (e.g. when only render timestamp changed)
#### Examples workflows

View File

@@ -100,8 +100,8 @@ inputs:
type: string
default: always
values:
- always # Always push changes
- skip-if-only-metadata-changed # Skip changes if only metadata contained in footer changed
- always # Always push changes
- data-changed # Skip changes if no actual data changed (e.g. when only render timestamp changed)
# Optimize SVG image to reduce its filesize
# Some templates may not support this option