From 7ccdf9f03c240d83081f7769e463ccfd4a680aeb Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Thu, 28 Oct 2021 00:37:32 -0400 Subject: [PATCH] feat(core): rename `skip-if-only-metadata-changed` to `data-changed` --- source/app/action/index.mjs | 2 +- source/plugins/core/README.md | 2 +- source/plugins/core/metadata.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs index aeaca919..df7303c4 100644 --- a/source/app/action/index.mjs +++ b/source/app/action/index.mjs @@ -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 { diff --git a/source/plugins/core/README.md b/source/plugins/core/README.md index 540875e3..f006e873 100644 --- a/source/plugins/core/README.md +++ b/source/plugins/core/README.md @@ -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 diff --git a/source/plugins/core/metadata.yml b/source/plugins/core/metadata.yml index b0f2f44d..0c10d90c 100644 --- a/source/plugins/core/metadata.yml +++ b/source/plugins/core/metadata.yml @@ -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