From 4dd82db538eedf00427cb3c68a7184b0153a8c8a Mon Sep 17 00:00:00 2001 From: David Festal Date: Thu, 29 Jan 2026 20:18:41 +0100 Subject: [PATCH] Move Validate Catalog Metadata step at the end of the workflow --- .github/workflows/export-dynamic.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/export-dynamic.yaml b/.github/workflows/export-dynamic.yaml index 04427e5..85fed53 100644 --- a/.github/workflows/export-dynamic.yaml +++ b/.github/workflows/export-dynamic.yaml @@ -304,16 +304,6 @@ jobs: image-tag-prefix: ${{ inputs.image-tag-prefix }} last-publish-commit: ${{ inputs.last-publish-commit }} - - name: Validate Catalog Metadata - if: ${{ success() && steps.export-dynamic.outputs.workspace-skipped-unchanged-since == 'false' }} - id: validate-metadata - uses: redhat-developer/rhdh-plugin-export-utils/validate-metadata@main - with: - overlay-root: ${{ github.workspace }}/overlay-repo/${{inputs.overlay-root}} - plugins-root: ${{ github.workspace }}/source-repo/${{inputs.plugins-root}} - target-backstage-version: ${{ inputs.target-backstage-version }} - image-repository-prefix: ${{ steps.set-image-tag-name.outputs.IMAGE_REPOSITORY_PREFIX }} - - name: Set artifacts name suffix id: set-artifacts-name-suffix shell: bash @@ -409,3 +399,13 @@ jobs: Dynamic Plugins for Red Hat Developer Hub ${{ github.ref_name }}, exported from ${{ inputs.plugins-repo }}. files: ${{ github.workspace }}/dynamic-plugin-archives/* repository: ${{ github.repository }} + + - name: Validate Catalog Metadata + if: ${{ failure() || steps.export-dynamic.outputs.workspace-skipped-unchanged-since == 'false' }} + id: validate-metadata + uses: redhat-developer/rhdh-plugin-export-utils/validate-metadata@main + with: + overlay-root: ${{ github.workspace }}/overlay-repo/${{inputs.overlay-root}} + plugins-root: ${{ github.workspace }}/source-repo/${{inputs.plugins-root}} + target-backstage-version: ${{ inputs.target-backstage-version }} + image-repository-prefix: ${{ steps.set-image-tag-name.outputs.IMAGE_REPOSITORY_PREFIX }}