Skip to content

Commit 7a2e152

Browse files
authored
Merge pull request #164 from morri-son/enhance-controller-release
correct yq handling of CV
2 parents e58c6da + 15144bf commit 7a2e152

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/cli.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
(.resources[] | select(.name == "image") | .version) = env(TAG) |
243243
(.resources[] | select(.name == "image") | .access.type) = "ociArtifact" |
244244
(.resources[] | select(.name == "image") | .access.imageReference) = env(IMAGE_REF) |
245-
del(.resources[] | select(.name == "image") | .relation)
245+
del(.resources[] | select(.name == "image") | .relation) |
246246
del(.resources[] | select(.name == "image") | .input)
247247
' "${TARGET_CONSTRUCTOR}"
248248
@@ -266,3 +266,15 @@ jobs:
266266
constructor_filename: cli-component-constructor.yaml
267267
build_artifact_name: ${{ needs.build.outputs.artifact_name }}
268268
ocm_repository: ghcr.io/${{ github.repository_owner }}
269+
270+
status-check:
271+
name: Status Check
272+
runs-on: ubuntu-latest
273+
needs: [publish, publish-component]
274+
if: always()
275+
steps:
276+
- name: Fail if OCM publish did not succeed
277+
if: ${{ needs.publish.result == 'success' && needs.publish-component.result != 'success' }}
278+
run: |
279+
echo "::error::OCM component publish did not pass (result: ${{ needs.publish-component.result }})"
280+
exit 1

0 commit comments

Comments
 (0)