-
|
Hello, I have the following UpdateCLI manifest (as part of a policy in development): # {{ $DefaultTitle := "Bump upstream CRD version" }}
name: '{{ default $DefaultTitle .title }}'
# {{ if .pipelineid }}
pipelineid: '{{ .pipelineid }}'
# {{ end }}
scms:
default:
kind: github
spec:
owner: {{ .scm.owner }}
repository: {{ .scm.repository }}
token: {{ requiredEnv .scm.env_token }}
username: {{ .scm.username }}
branch: {{ .scm.branch }}
sources:
upstream:
kind: githubrelease
spec:
owner: {{ .upstream.owner }}
repository: {{ .upstream.repository }}
versionfilter:
kind: semver
pattern: {{ requiredEnv .upstream.env_version }}
token: {{ requiredEnv .upstream.env_token }}
transformers:
- trimprefix: "v"
targets:
apply-to-projen:
name: "Update CRD version in .projenrc.json"
kind: json
sourceid: upstream
scmid: default
spec:
engine: "dasel/v2"
file: ".projenrc.json"
key: "latestVersionOnBranch"
actions:
default:
# The action title is used to define the pullrequest title
# Since we use the groupby set to all we need to be sure that the pullrequest title
# is the same for all the pipeline generated by autodiscovery.
title: Bump upstream CRD version
kind: github/pullrequest
scmid: default
spec:
labels:
- "dependencies"In Now, if the values are NOT different, e.g. subsequent runs, I want to let the run stop, but not with an error. I looked into |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Have you tried a condition with a Then set |
Beta Was this translation helpful? Give feedback.

Have you tried a condition with a
failwhensetting?Something like
Then set
failwhento false or true depending on the situationAs mentionned on https://www.updatecli.io/docs/core/condition/
The failwhen allows to revert the expected condition result