File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments