Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
report version suffixes found.
Browse files Browse the repository at this point in the history
  • Loading branch information
ferenc-hechler committed Jun 12, 2024
1 parent 406fd23 commit 95cdf3f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/check-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ jobs:
with:
cmd: yq '[.secretsmanagement-operator.prereleaseSuffix, .secretsmanagement-operator.sidecarPrereleaseSuffix] | filter(.!=null and .!="") | length | . != "0"' charts/canvas-oda/values.yaml

- name: collect existing version suffixes in values.yaml for error reportfor
id: version_suffixes
if: steps.values_yaml_contains_version_suffix.outputs.result
uses: mikefarah/yq@master
with:
cmd: yq '[.secretsmanagement-operator.prereleaseSuffix, .secretsmanagement-operator.sidecarPrereleaseSuffix] | filter(.!=null and .!="")' charts/canvas-oda/values.yaml

- name: report error
if: steps.values_yaml_contains_version_suffix.outputs.result
run: |
echo "::error::values.yaml contains at least one nonempty prereleaseSuffix" && exit 1
echo "::error::values.yaml contains prereleaseSuffixes: steps.version_suffixes.outputs.result" && exit 1

0 comments on commit 95cdf3f

Please sign in to comment.